mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-07 09:41:05 +08:00
tiny fixes
This commit is contained in:
@@ -31,7 +31,7 @@ func (w *Wait) WaitWithTimeout(timeout time.Duration) bool {
|
||||
c := make(chan bool, 1)
|
||||
go func() {
|
||||
defer close(c)
|
||||
w.wg.Wait()
|
||||
w.Wait()
|
||||
c <- true
|
||||
}()
|
||||
select {
|
||||
|
Reference in New Issue
Block a user