neo-go/pkg/rpc/client
Anna Shaleva 65dbe85ec5 rpc: avoid panic during request after WS connection is closed
Fix the following panic:
```
panic: assignment to entry in nil map

goroutine 131 [running]:
github.com/nspcc-dev/neo-go/pkg/rpc/client.(*WSClient).registerRespChannel(0xc00033c240, 0x0, 0xc00003e2a0)
        /home/denis/go/pkg/mod/github.com/nspcc-dev/neo-go@v0.98.2/pkg/rpc/client/wsclient.go:244 +0x96
github.com/nspcc-dev/neo-go/pkg/rpc/client.(*WSClient).makeWsRequest(0xc00033c240, 0xc002080000)
        /home/denis/go/pkg/mod/github.com/nspcc-dev/neo-go@v0.98.2/pkg/rpc/client/wsclient.go:264 +0x69
github.com/nspcc-dev/neo-go/pkg/rpc/client.(*Client).performRequest(0xc00033c240, {0xc9f173, 0xd}, {{0x13d09d0, 0x0, 0x0}}, {0xb44120, 0xc00147a000})
        /home/denis/go/pkg/mod/github.com/nspcc-dev/neo-go@v0.98.2/pkg/rpc/client/client.go:186 +0x15d
github.com/nspcc-dev/neo-go/pkg/rpc/client.(*Client).GetBlockCount(0xc001fb5440)
        /home/denis/go/pkg/mod/github.com/nspcc-dev/neo-go@v0.98.2/pkg/rpc/client/rpc.go:73 +0x69
...
```
2022-04-27 10:53:29 +03:00
..
nns rpc/client: remove dependency on examples 2022-01-25 12:41:06 +03:00
client.go rpc: add a note to RPC clients about thread-safeness 2022-02-24 19:01:21 +03:00
doc.go rpc: update docs of RPC client 2022-01-17 12:00:56 +03:00
doc_test.go rpc: adjust client documentation 2021-09-08 17:53:09 +03:00
helper.go fix typo's 2022-04-20 14:00:12 +02:00
native.go smartcontract: allow to use *big.Int numbers for integers 2022-04-01 08:38:34 +03:00
nep.go rpc: accept NEP11 token IDs as []byte for client methods 2022-02-09 11:55:07 +03:00
nep11.go rpc: carefully review places where Client.cache.initDone is used 2022-02-22 12:52:14 +03:00
nep17.go rpc: carefully review places where Client.cache.initDone is used 2022-02-22 12:52:14 +03:00
policy.go rpc: carefully review places where Client.cache.initDone is used 2022-02-22 12:52:14 +03:00
rpc.go *: support customisable NotaryServiceFeePerKey value 2022-03-01 19:08:16 +03:00
rpc_test.go rpc: make RPC WSClient thread-safe 2022-02-24 19:01:12 +03:00
wsclient.go rpc: avoid panic during request after WS connection is closed 2022-04-27 10:53:29 +03:00
wsclient_test.go rpc: avoid panic during request after WS connection is closed 2022-04-27 10:53:29 +03:00