-
Notifications
You must be signed in to change notification settings - Fork 32
feat(redundancy): add redundancy level configuration for smoke check #556
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
base: master
Are you sure you want to change the base?
Changes from all commits
e63ce38
08d39c4
199b519
a00ad6c
0dae27d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,9 @@ | ||
| package api | ||
|
|
||
| import "github.com/ethersphere/bee/v2/pkg/swarm" | ||
| import ( | ||
| "github.com/ethersphere/bee/v2/pkg/file/redundancy" | ||
| "github.com/ethersphere/bee/v2/pkg/swarm" | ||
| ) | ||
|
|
||
| type UploadOptions struct { | ||
| Act bool | ||
|
|
@@ -9,6 +12,7 @@ type UploadOptions struct { | |
| BatchID string | ||
| Direct bool | ||
| ActHistoryAddress swarm.Address | ||
| RLevel redundancy.Level | ||
|
Member
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. I would suggest that pointer use for RLevel, that way, if you add check for nil, |
||
|
|
||
| // Dirs | ||
| IndexDocument string | ||
|
|
@@ -21,6 +25,7 @@ type DownloadOptions struct { | |
| ActPublicKey *swarm.Address | ||
| ActTimestamp *uint64 | ||
| Cache *bool | ||
| RLevel redundancy.Level | ||
|
Member
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. Same here |
||
| RedundancyFallbackMode *bool | ||
| OnlyRootChunk *bool | ||
| } | ||
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.
keep the similar variable naming
swarmRedundancyLevelHeader