Skip to content

Commit

Permalink
check err
Browse files Browse the repository at this point in the history
  • Loading branch information
travisjeffery committed Nov 30, 2016
1 parent f201be8 commit 555414c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ func main() {
gracefully.Timeout = 10 * time.Second
gracefully.Shutdown()

store.Close()
if err := store.Close(); err != nil {
panic(err)
}
server.Close()
}

0 comments on commit 555414c

Please sign in to comment.