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

@ -37,9 +37,7 @@ type Client struct {
types.EventSwitch
}
func (c Client) _assertIsClient() client.Client {
return c
}
var _ client.Client = Client{}
// Call is used by recorders to save a call and response.
// It can also be used to configure mock responses.