remove duplicate time log
This commit is contained in:
parent
829c7953d5
commit
5f599dcaf5
@ -10,12 +10,6 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func (mp *MessagePool) pruneExcessMessages() error {
|
func (mp *MessagePool) pruneExcessMessages() error {
|
||||||
|
|
||||||
start := time.Now()
|
|
||||||
defer func() {
|
|
||||||
log.Infow("message pruning complete", "took", time.Since(start))
|
|
||||||
}()
|
|
||||||
|
|
||||||
mp.curTsLk.Lock()
|
mp.curTsLk.Lock()
|
||||||
ts := mp.curTs
|
ts := mp.curTs
|
||||||
mp.curTsLk.Unlock()
|
mp.curTsLk.Unlock()
|
||||||
|
Loading…
Reference in New Issue
Block a user