New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: rework tinder #3139
feat: rework tinder #3139
Conversation
24bf878
to
b511367
Compare
144d7cd
to
1292e4e
Compare
c48a0f6
to
c406d6f
Compare
Codecov Report
@@ Coverage Diff @@
## master #3139 +/- ##
==========================================
+ Coverage 29.15% 29.74% +0.58%
==========================================
Files 352 352
Lines 21939 22026 +87
Branches 1685 1685
==========================================
+ Hits 6396 6551 +155
+ Misses 14389 14311 -78
- Partials 1154 1164 +10
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
1c3b767
to
0a2bbfb
Compare
994e601
to
e3954cc
Compare
9b288ec
to
a7f2d67
Compare
56c8a24
to
6ba0b02
Compare
fs.DurationVar(&m.Node.Protocol.MinBackoff, "p2p.min-backoff", time.Minute, "minimum p2p backoff duration") | ||
fs.DurationVar(&m.Node.Protocol.MaxBackoff, "p2p.max-backoff", time.Minute*10, "maximum p2p backoff duration") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
previous setting was 1s, 1m; now we have 1m, 10m
why are you switching to these new values?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm much more confident in tinder backoff than before, so I've just increased this to a more reasonable range
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
@@ -60,8 +61,11 @@ func (m *Manager) SetupLocalIPFSFlags(fs *flag.FlagSet) { | |||
fs.StringVar(&m.Node.Protocol.Announce, "p2p.swarm-announce", "", "IPFS announce addrs") | |||
fs.StringVar(&m.Node.Protocol.NoAnnounce, "p2p.swarm-no-announce", "", "IPFS exclude announce addrs") | |||
fs.BoolVar(&m.Node.Protocol.LocalDiscovery, "p2p.local-discovery", true, "if true local discovery will be enabled") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be renamed p2p.mdns
and a flag p2p.tinder-local-driver
should be added (or tinder-local-driver should be removed if it is useless as we discussed earlier).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will do this in a separate PR
0f3785c
to
4eec812
Compare
Signed-off-by: Guilhem Fanton <guilhem.fanton@gmail.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <guilhem.fanton@gmail.com>
Signed-off-by: gfanton <guilhem.fanton@gmail.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
4eec812
to
ec969a7
Compare
🎉 This PR is included in version 2.277.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Rework tinder driver: