-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Update pubsub and add default validator #9684
base: master
Are you sure you want to change the base?
Conversation
Some complaints from go-checks aboug go.mod not being tidy ... but that is! |
So the We either have to wait a minute for cleanup or we need to do some hack to change the default duration or wait for a minute. Also note, the test tests the wrong thing, i.e. the explicit behaviour of the original last seen cache implentation which has now changed. Options:
I don't like waiting for minutes, and I think this is test is not very useful atm, so I am disabling for now. |
Edit: I don't have the patience for this, disabling for now. |
Thinking more about this test situation -- i think this test simply doesn't belong. It has to be rewritten and move into pubsub where we have better control of such things; also note it might be completely reduntant given how we have unit tests for the caches there. |
type P2PPubSubIn struct { | ||
fx.In | ||
|
||
Repo repo.Repo | ||
Host host.Host | ||
Discovery discovery.Discovery | ||
} |
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.
What is the point of P2PPubSubIn
? Couldn't you use arguments on the anonymous functions ?
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.
Its 3 of them, this is more tidy and it costs nothing.
@Jorropo : what are the next steps here for getting this merged? |
2023-03-09 maintainer conversation on what to do about this situation. Reminder for all: https://github.com/ipfs/kubo/blob/master/docs/config.md#pubsub is experimental and not on by default. Historically this feature has caused a lot of pain because Kubo isn't making an explicit contract. One is accepting libp2p defaults. In addition, attempting to maintain compatibility between js-ipfs and Kubo has been a challenge. This is a feature that hasn't made sense to have in Kubo itself. There are two sets of actions that need to be taken: For Kubo and its users in general. These will get fully tracked in the issue below:
Specific actions concerning Ceramic:
|
Cermaic meeting scheduled for 2023-03-21 at 17UTC |
triage discussion
|
f8ac8b5
to
534c3ff
Compare
See #9665
This updates go-libp2p-pubsub to v0.9.2 and adds a default validator to protect against message cycles when the effective network diameter exceeds the span of the timecache.