-
Notifications
You must be signed in to change notification settings - Fork 3
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
What is SeqWrap for? #29
Comments
@KyleMaas afaiu when querying the log, instead of having to first get back a list of sequence numbers and then query the log again to pull out the items, Lines 29 to 31 in 4f58150
|
Is there a situation where you would not want this behavior? I don't think I've seen anything that doesn't use this. |
@KyleMaas I'm not sure but I guess we could imagine a scenario where only grabbing the sequence number is less overhead for the query caller. Are you looking to remap this API surface or? Definitely wanna find time to do a docs sprint here... |
I've spotted several opportunities for race conditions which can corrupt things when SeqWrap is used. Just trying to understand it better. |
I have yet to see a Margaret query in go-ssb that doesn't use SeqWrap. What is the purpose of it, and why isn't it the default (or only option) if that's the way it's always used?
The text was updated successfully, but these errors were encountered: