rpc/client: take context as first param (#5347)

Closes #5145

also applies to light/client
This commit is contained in:
Anton Kaliaev
2020-09-23 09:21:57 +04:00
committed by GitHub
parent 0aecda68fc
commit 85a4be87a7
41 changed files with 706 additions and 503 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ func waitForRPC() {
}
result := new(ctypes.ResultStatus)
for {
_, err := client.Call("status", map[string]interface{}{}, result)
_, err := client.Call(context.Background(), "status", map[string]interface{}{}, result)
if err == nil {
return
}