Commit adds signal handler to improve shutting down the bitcaskd application: (#131)

- server explicitly closes connections
 - server persists index on disk
This commit is contained in:
Victor Mogilin
2020-02-10 11:40:11 +03:00
committed by GitHub
parent 4ce7610fe9
commit a5f92da438
3 changed files with 25 additions and 2 deletions

View File

@@ -55,5 +55,7 @@ func main() {
os.Exit(2)
}
log.Fatal(server.Run())
if err = server.Run(); err != nil {
log.Fatal(err)
}
}