-
Notifications
You must be signed in to change notification settings - Fork 110
chunk, prod, pss, storage, swarm: trigger trojan chunk sending #2166
chunk, prod, pss, storage, swarm: trigger trojan chunk sending #2166
Conversation
storage/netstore.go
Outdated
@@ -99,6 +100,7 @@ type NetStore struct { | |||
requestGroup singleflight.Group | |||
RemoteGet RemoteGetFunc | |||
logger log.Logger | |||
prod *prod.Prod |
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.
No, the dependency is the other way round more natural.
Here i would assign a function or if you insist, an interface with
Recover
method
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.
this was changed to be similar to Deliver hook.
This was one of the reasons there was an import cycle error.
…llback in netstore, will need iteration
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.
i think this is done no?
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.
very nice job on the TestSenderCall
func 👏
i think this needs just one more iteration and we're good to go 👍
…n prod tests, refactored methods common methods in pss/prod testing, added comments for deliver and recover callbacks in respective fields
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.
I addressed all the comments.
Thanks for the feedback
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.
good stuff! thank you for addressing everything.
EXPERIMENTAL
(will not merge to
master
)WIP for triggering trojan chunk sending used by implementation for global pinning.
this is invoked after trying to download content and failing, this will be a trigger to start the global pinning lifecycle.
Related issue: #2161
This PR:
Remove
TODO
s for deprecated code after iteration