Merge pull request #2326 from filecoin-project/feat/optim-badger

Ignore log.Sync() error
This commit is contained in:
Łukasz Magiera 2020-07-08 21:16:13 +02:00 committed by GitHub
commit 9a5b26c50c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ func serveRPC(a api.FullNode, stop node.StopFunc, addr multiaddr.Multiaddr, shut
log.Errorf("graceful shutting down failed: %s", err) log.Errorf("graceful shutting down failed: %s", err)
} }
log.Warn("Graceful shutdown successful") log.Warn("Graceful shutdown successful")
log.Sync() _ = log.Sync() //nolint:errcheck
close(shutdownDone) close(shutdownDone)
}() }()
signal.Notify(sigCh, syscall.SIGTERM, syscall.SIGINT) signal.Notify(sigCh, syscall.SIGTERM, syscall.SIGINT)