diff --git a/client.go b/client.go index 28489b95..cb11e523 100644 --- a/client.go +++ b/client.go @@ -115,9 +115,10 @@ type client struct { // newClient creates new client connection. func newClient(ctx context.Context, n *Node, t transport) *client { + uuidObject, _ := uuid.NewV4() c := &client{ ctx: ctx, - uid: uuid.NewV4().String(), + uid: uuidObject.String(), node: n, transport: t, } diff --git a/node.go b/node.go index 4876bcf2..23763176 100644 --- a/node.go +++ b/node.go @@ -59,7 +59,8 @@ type Node struct { // New creates Node, the only required argument is config. func New(c Config) *Node { - uid := uuid.NewV4().String() + uidObject, _ := uuid.NewV4() + uid := uidObject.String() n := &Node{ uid: uid,