mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-06 13:26:23 +00:00
rpc/client: use compile time assertions instead of methods
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user