-
Notifications
You must be signed in to change notification settings - Fork 42
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!: use ShardingParams on subscriptions, make Decoder/Encoder auto sharding friendly by default #1958
Merged
Merged
feat!: use ShardingParams on subscriptions, make Decoder/Encoder auto sharding friendly by default #1958
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
6acf183
fix: use pubsubTopic from current ones if not set
weboko a7bf4fd
fix: improve type on dial method
weboko 08397ff
enforce same pubusb on filter.subscribe, make content topic to pubsub…
weboko c89c8f9
fix mapping problem
weboko 5248761
update tests
weboko f9b9bda
add error handling
weboko fd60cc2
fix typo
weboko f7849c3
merge with master
weboko 22cfb50
up lock
weboko 8db5bf8
rm lock
weboko 0f79e17
up lock
weboko 0c7f4a1
remove only
weboko a8922ba
fix content topic
weboko eabe940
Merge branch 'master' of github.com:waku-org/js-waku into weboko/prot…
weboko 68f3619
fix ephemeral test
weboko 364045b
fix filter unsubscribe test
weboko b324f64
up utils
weboko f9d5546
fix subscribe test
weboko a629aa7
up interfaces and filter api
weboko d1aff71
remove only
weboko 801b286
up ping test
weboko c10e7d9
fix subscribe test
weboko 5ee014d
fix push test
weboko 32852ad
fix lightPush
weboko f971624
fix multiple pubsub
weboko a929da7
remove only, fix subscribe filter test
weboko 6e29167
remove only
weboko 1641074
merge with master
weboko 7d79bda
fix cluster ID selection and named sharding subscription test
weboko c574863
fix unsubscribe test
weboko 8873aa1
fix light push test
weboko 7d24612
fix light push test
weboko d8b1952
fix push test
weboko 600c02b
fix relay publish
weboko 88ba615
create runNode and fix relay tests
weboko 90731d7
generalize runNodes, fix some tests
weboko a4c3d50
fix store tests
weboko 16ffc67
fix toAsyncIterator tests
weboko e47cc67
remove only
weboko 7e1260b
fix lightPush
weboko 9d02f2b
use generics
weboko b0381b4
try fix test
weboko 53d4db8
run failing tests
weboko fd9cb86
remove only
weboko f7595c2
address failed tests, remove DefaultPubsubTopic dependency in some tests
weboko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import type { PeerId, Stream } from "@libp2p/interface"; | ||
import type { Multiaddr } from "@multiformats/multiaddr"; | ||
import type { MultiaddrInput } from "@multiformats/multiaddr"; | ||
|
||
import { IConnectionManager } from "./connection_manager.js"; | ||
import type { IFilterSDK } from "./filter.js"; | ||
|
@@ -18,7 +18,7 @@ export interface Waku { | |
|
||
connectionManager: IConnectionManager; | ||
|
||
dial(peer: PeerId | Multiaddr, protocols?: Protocols[]): Promise<Stream>; | ||
dial(peer: PeerId | MultiaddrInput, protocols?: Protocols[]): Promise<Stream>; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fix for discrepancy in types - this prevents us from doing |
||
|
||
start(): Promise<void>; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Important change - assumption is that default choice is TWN cluster ID.