File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11module github.com/decred/dcrd/rpcclient/v8
22
3- go 1.18
3+ go 1.19
44
55require (
66 github.com/decred/dcrd/chaincfg/chainhash v1.0.5
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ type jsonRequest struct {
143143// the returned future will block until the result is available if it's not
144144// already.
145145type Client struct {
146- id uint64 // atomic, so must stay 64-bit aligned
146+ id atomic. Uint64
147147
148148 // config holds the connection configuration associated with this
149149 // client.
@@ -212,7 +212,7 @@ func (c *Client) String() string {
212212// this function should be used to ensure the ID is unique amongst all requests
213213// being made.
214214func (c * Client ) NextID () uint64 {
215- return atomic . AddUint64 ( & c .id , 1 )
215+ return c .id . Add ( 1 )
216216}
217217
218218// addRequest associates the passed jsonRequest with its id. This allows the
You can’t perform that action at this time.
0 commit comments