diff --git a/api.go b/api.go index eda33c3f..3c034d8e 100644 --- a/api.go +++ b/api.go @@ -808,6 +808,7 @@ func (r *Raft) ApplyLog(log Log, timeout time.Duration) ApplyFuture { }, } logFuture.init() + logFuture.deferError.ShutdownCh = r.shutdownCh select { case <-timer: