forked from cerc-io/ipld-eth-server
review fixes
This commit is contained in:
1 parent
5be205ffa6
commit
4036d9d6a0
11 files changed
+31
-46
No files matched your search
+2
-2
@@ -181,11 +181,11 @@ func getClients() (client.RPCClient, *ethclient.Client) {
|
||||
func getWSClient() core.RPCClient {
|
||||
wsRPCpath := viper.GetString("client.wsPath")
|
||||
if wsRPCpath == "" {
|
||||
LogWithCommand.Fatal(errors.New("getWSClient() was called but no ws rpc path is provided"))
|
||||
logWithCommand.Fatal(errors.New("getWSClient() was called but no ws rpc path is provided"))
|
||||
}
|
||||
wsRPCClient, dialErr := rpc.Dial(wsRPCpath)
|
||||
if dialErr != nil {
|
||||
LogWithCommand.Fatal(dialErr)
|
||||
logWithCommand.Fatal(dialErr)
|
||||
}
|
||||
return client.NewRPCClient(wsRPCClient, wsRPCpath)
|
||||
}
|
||||
Reference in new issue
Block a user