remove duplicated app.Close call (#17619)

Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
This commit is contained in:
yihuang 2023-09-05 15:16:35 +08:00 committed by GitHub
parent 97661429e0
commit 202c291c4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,6 @@ package server
import (
"context"
"errors"
"fmt"
"io"
"net"
@ -275,7 +274,7 @@ func startStandAlone(svrCtx *Context, app types.Application, opts StartCmdOption
// so we can gracefully stop the ABCI server.
<-ctx.Done()
svrCtx.Logger.Info("stopping the ABCI server...")
return errors.Join(svr.Stop(), app.Close())
return svr.Stop()
})
return g.Wait()
@ -373,7 +372,6 @@ func startCmtNode(
cleanupFn = func() {
if tmNode != nil && tmNode.IsRunning() {
_ = tmNode.Stop()
_ = app.Close()
}
}