remove duplicate time log

This commit is contained in:
vyzo 2020-08-05 21:48:29 +03:00
parent 829c7953d5
commit 5f599dcaf5

View File

@ -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()