Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remotedb/grpcdb: fix net.Listener leak in ListenAndServe
Uses Go's named return value feature to properly check and ensure that if any error is encountered, that we properly invoke .Close for the bound net listener inside of ListenAndServe. Fixes tendermint#268
- Loading branch information