-
Notifications
You must be signed in to change notification settings - Fork 23
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
remote: add AddToStoreNar operation #277
Conversation
Very nice (especially the framing!) and sorry for the conflicts! Wanted to merge earlier but didn't get to it sooner. The You're right about No idea about the chunk size tbh. |
if narBytes == 0 then writeFramedSource (const (pure Nothing)) soc 0 | ||
else throwError RemoteStoreError_NoDataSourceProvided | ||
Just dataSource -> do | ||
writeFramedSource dataSource soc narBytes |
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.
Now I kinda wonder what's the Logger_Read
code path for.
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.
Yeah, I don't know if it's still used in the newer protocol versions.
Add SuccessCodeReply to replace instances of the () reply type. The serialization behavior is more clear with the more explicit type.
12d3105
to
0672d02
Compare
|
0672d02
to
5494cc3
Compare
Nicely done, thank you! |
Btw I'm pretty much done with most large-scale changes/refactors so things should settle down now, feel free to tackle what you see fit. |
Some open items:
()
is already taken byopSuccess
which reads a boolean. MaybeopSuccess
should use a new reply type, and this one should use()
RemoteStoreError_Fixme
usagesSampleNar
Closes #265