rpc: add a note to RPC clients about thread-safeness

This commit is contained in:
Anna Shaleva 2022-02-22 16:49:38 +03:00 committed by AnnaShaleva
parent 2896c0a83a
commit 1f255e756f
2 changed files with 4 additions and 1 deletions

View file

@ -28,7 +28,8 @@ const (
)
// Client represents the middleman for executing JSON RPC calls
// to remote NEO RPC nodes.
// to remote NEO RPC nodes. Client is thread-safe and can be used from
// multiple goroutines.
type Client struct {
cli *http.Client
endpoint *url.URL