Conversation
Implement WebTransport as a new transport option alongside yamux and quic. Includes native server/client with TLS handshake, WASM/browser client (dial-only), PeerService integration with optional transport registration, and configuration support.
5df6b0b to
dd124f4
Compare
43c4e66 to
cb4ec5a
Compare
Add space-global monotonic add sequence (AddSeq) to storage changes, enabling incremental sync by allowing queries for changes after a given sequence number. Includes GetAfterAddSeq query method on storage and per-space atomic counter managed by spaceStorage.
cheggaaa
approved these changes
Mar 24, 2026
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
AddSeqcounter to storage changesGetAfterAddSeq, without rescanning the full treeatomic.Add(1)perAddAll/AddAllNoErrorcall — all changes in one batch share the same seqatomic.Uint64counter across all tree storages in a space, set byspaceStoragespaceStorage.Newinitializes counter from max existing seq in DB on startupChanges
StorageChange.AddSeqfield,AddSeqKeyconstant,Storage.GetAfterAddSeqinterface methodstorage.SetAddSeq/storageDeferredCreation.SetAddSeqwiringspaceStoragemanages shared counter, injects into all tree storagesobjecttreevalidatoruses a noop zero-counter for ephemeral validation storagesTest plan
TestAddSeq_AddAll— batch seq assignment, increment across callsTestAddSeq_AddAllNoError— duplicate inserts tolerated, seq still incrementsTestAddSeq_NoopCounter— zero-valued counter works (validator path)TestAddSeq_GetAfterAddSeq— threshold queries return correct subsetsTestAddSeq_GetAfterAddSeq_Empty— no false positives on empty resultsTestAddSeq_Parallel— 10 goroutines sharing one counter, no duplicate seqsTestAddSeq_DeferredCreation— seq propagated through lazy storage creation