mirror of https://github.com/sirupsen/logrus.git
add lock function
This commit is contained in:
parent
ca79890a05
commit
b9589019f7
|
@ -132,8 +132,7 @@ func TestLogger_concurrentLock(t *testing.T) {
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
c := make(chan int)
|
time.Sleep(1 * time.Minute)
|
||||||
<-c
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var traceLock = &sync.Mutex{}
|
var traceLock = &sync.Mutex{}
|
||||||
|
|
Loading…
Reference in New Issue