aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-04-15 19:45:15 +0800
committerFelix Lange <fjl@twurst.com>2016-04-15 19:45:15 +0800
commit6197fbf8d70c1aa96c3e87de91ff3f46f454c1ea (patch)
tree1b3b3677892e2d94400f3604dc6c2dda4c05ccd4 /rpc
parent5c17b2f5211ec98a87140c874483681de4e34391 (diff)
parentbf5ae502ef179490a039c9bcd66d32cd5a7ce5e9 (diff)
downloaddexon-6197fbf8d70c1aa96c3e87de91ff3f46f454c1ea.tar.gz
dexon-6197fbf8d70c1aa96c3e87de91ff3f46f454c1ea.tar.zst
dexon-6197fbf8d70c1aa96c3e87de91ff3f46f454c1ea.zip
Merge pull request #2458 from fjl/go-vet
all: fix go vet warnings
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)