waku-org / nwaku

Waku node and protocol.
Other
201 stars 53 forks source link

chore: naming connect procedure #3157

Closed gabrielmer closed 3 weeks ago

gabrielmer commented 3 weeks ago

Description

Looking deeper at the code, I noticed that the connectRelay procedure uses the nim-libp2p connect procedure that connects to a node without setting a protocol. connectRelay was a misnomer and it's more correct to call itconnectPeer

Changes

github-actions[bot] commented 3 weeks ago

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:3157

Built from 146097da23be23f0100b078f1193de877e8972a2

Ivansete-status commented 3 weeks ago

Thanks for that! Nevertheless, I think is interesting having a more descriptive proc name because connect is too generic and it difficult the implementation lookup. I'm more keen on longer descriptive proc name than shorter/generic proc names such as send, put, etc :)

gabrielmer commented 3 weeks ago

Thanks for that! Nevertheless, I think is interesting having a more descriptive proc name because connect is too generic and it difficult the implementation lookup. I'm more keen on longer descriptive proc name than shorter/generic proc names such as send, put, etc :)

Makes sense! I updated it to connectPeer instead :)

Thank you!