Skip to content

Commit

Permalink
fix node constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
nasdf committed Jun 13, 2024
1 parent 311a37d commit cfa0ef9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions net/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,15 @@ func NewNode(
}
}()

return &Node{
node = &Node{
Peer: peer,
DB: db,
ctx: ctx,
cancel: cancel,
dhtClose: ddht.Close,
}, nil
}

return
}

// Bootstrap connects to the given peers.
Expand Down

0 comments on commit cfa0ef9

Please sign in to comment.