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

@ -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()