Skip to content

Commit 58141bc

Browse files
author
kpango
committed
fix
1 parent fa6cc46 commit 58141bc

File tree

3 files changed

+3
-35
lines changed

3 files changed

+3
-35
lines changed

glg.go

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ func New() *Glg {
224224
g.logger.Store(k, v)
225225
}
226226

227-
// return g.startTimerD()
228227
return g
229228
}
230229

@@ -236,37 +235,6 @@ func Get() *Glg {
236235
return glg
237236
}
238237

239-
// func (g *Glg) startTimerD() *Glg {
240-
// g.timer = new(atomic.Value)
241-
// timeFormat := "2006-01-02 15:04:05"
242-
//
243-
// g.storeTime(timeFormat)
244-
//
245-
// var ctx context.Context
246-
// ctx, g.cancel = context.WithCancel(context.Background())
247-
//
248-
// go func() {
249-
// ticker := time.NewTicker(time.Millisecond * 500)
250-
// for {
251-
// select {
252-
// case <-ctx.Done():
253-
// ticker.Stop()
254-
// return
255-
// case <-ticker.C:
256-
// g.storeTime(timeFormat)
257-
// }
258-
// }
259-
// }()
260-
//
261-
// return g
262-
// }
263-
//
264-
// func (g *Glg) storeTime(format string) {
265-
// buf := g.buffer.Get().([]byte)
266-
// g.timer.Store(fastime.Now().AppendFormat(buf[:0], format))
267-
// g.buffer.Put(buf[:0])
268-
// }
269-
270238
// Stop stops glg timer daemon
271239
func (g *Glg) Stop() *Glg {
272240
g.cancel()

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/kpango/glg
22

3-
require github.com/kpango/fastime v0.0.0-20181022060440-408176c9548b
3+
require github.com/kpango/fastime v1.0.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github.com/kpango/fastime v0.0.0-20181022060440-408176c9548b h1:lTsGeNIoCjN78uW8yncPWjC7G/hNibRAqTId7TG4ZmE=
2-
github.com/kpango/fastime v0.0.0-20181022060440-408176c9548b/go.mod h1:Y5XY5bLG5yc7g2XmMUzc22XYV1XaH+KgUOHkDvLp4SA=
1+
github.com/kpango/fastime v1.0.0 h1:tZeI+eEyHHYKkTkKOiOZ5MeeRJmliuZlGV7aK7S2rkE=
2+
github.com/kpango/fastime v1.0.0/go.mod h1:Y5XY5bLG5yc7g2XmMUzc22XYV1XaH+KgUOHkDvLp4SA=

0 commit comments

Comments
 (0)