Merge pull request #741 from tendermint/client-compile-time-assertions

rpc/client: use compile time assertions instead of methods
This commit is contained in:
Ethan Buchman
2017-10-17 03:41:24 -04:00
committed by GitHub
5 changed files with 20 additions and 43 deletions

View File

@ -41,13 +41,10 @@ func NewLocal(node *nm.Node) Local {
}
}
func (c Local) _assertIsClient() Client {
return c
}
func (c Local) _assertIsNetworkClient() NetworkClient {
return c
}
var (
_ Client = Local{}
_ NetworkClient = Local{}
)
func (c Local) Status() (*ctypes.ResultStatus, error) {
return core.Status()