(dur time.Duration)
| 23 | const KeepTTL = -1 |
| 24 | |
| 25 | func usePrecise(dur time.Duration) bool { |
| 26 | return dur < time.Second || dur%time.Second != 0 |
| 27 | } |
| 28 | |
| 29 | func formatMs(ctx context.Context, dur time.Duration) int64 { |
| 30 | if dur > 0 && dur < time.Millisecond { |
no outgoing calls
no test coverage detected