aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
Diffstat (limited to 'rpc')
-rw-r--r--rpc/ipc_unix.go2
-rw-r--r--rpc/json_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/rpc/ipc_unix.go b/rpc/ipc_unix.go
index 310286e96..9ece01240 100644
--- a/rpc/ipc_unix.go
+++ b/rpc/ipc_unix.go
@@ -41,5 +41,5 @@ func ipcListen(endpoint string) (net.Listener, error) {
// newIPCConnection will connect to a Unix socket on the given endpoint.
func newIPCConnection(endpoint string) (net.Conn, error) {
- return net.DialUnix("unix", nil, &net.UnixAddr{endpoint, "unix"})
+ return net.DialUnix("unix", nil, &net.UnixAddr{Name: endpoint, Net: "unix"})
}
diff --git a/rpc/json_test.go b/rpc/json_test.go
index b095996b8..5048d2f7a 100644
--- a/rpc/json_test.go
+++ b/rpc/json_test.go
@@ -75,7 +75,7 @@ func TestJSONRequestParsing(t *testing.T) {
t.Fatalf("%v", e)
}
if id != 1234 {
- t.Fatalf("Expected id 1234 but got %s", id)
+ t.Fatalf("Expected id 1234 but got %d", id)
}
} else {
t.Fatalf("invalid request, expected *json.RawMesage got %T", requests[0].id)