rpc/client: use compile time assertions instead of methods

This commit is contained in:
Emmanuel Odeke
2017-10-13 00:11:20 -06:00
parent 27245ce6f6
commit 5f218a43fd
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.