File tree Expand file tree Collapse file tree 3 files changed +3
-35
lines changed Expand file tree Collapse file tree 3 files changed +3
-35
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,6 @@ func New() *Glg {
224
224
g .logger .Store (k , v )
225
225
}
226
226
227
- // return g.startTimerD()
228
227
return g
229
228
}
230
229
@@ -236,37 +235,6 @@ func Get() *Glg {
236
235
return glg
237
236
}
238
237
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
-
270
238
// Stop stops glg timer daemon
271
239
func (g * Glg ) Stop () * Glg {
272
240
g .cancel ()
Original file line number Diff line number Diff line change 1
1
module github.com/kpango/glg
2
2
3
- require github.com/kpango/fastime v0 .0.0-20181022060440-408176c9548b
3
+ require github.com/kpango/fastime v1 .0.0
Original file line number Diff line number Diff line change 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 =
You can’t perform that action at this time.
0 commit comments