MCPcopy Create free account
hub / github.com/DOSNetwork/core / Join

Method Join

p2p/server.go:548–559  ·  view source on GitHub ↗
(bootstrapIP []string)

Source from the content-addressed store, hash-verified

546}
547
548func (n *server) Join(bootstrapIP []string) (num int, err error) {
549 select {
550 case <-n.ctx.Done():
551 err = n.ctx.Err()
552 default:
553 num, err = n.members.Join(bootstrapIP)
554 if err != nil {
555 n.logger.Error(errors.Errorf(" : %w", err))
556 }
557 }
558 return
559}
560
561func (n *server) NumOfMembers() (num int) {
562 select {

Callers

nothing calls this directly

Calls 2

JoinMethod · 0.65
ErrorMethod · 0.65

Tested by

no test coverage detected