@@ -22,7 +22,7 @@ import (
2222// to a multiplexed variant that fetches chunks with replicas for SOC.
2323//
2424// the strategy to retrieve a chunk that has replicas can be configured with a few parameters:
25- // - RetryInterval : the delay before a new batch of replicas is fetched.
25+ // - SOCRetryInterval : the delay before a new batch of replicas is fetched.
2626// - depth: 2^{depth} is the total number of additional replicas that have been uploaded
2727// (by default, it is assumed to be 4, ie. total of 16)
2828// - (not implemented) pivot: replicas with address in the proximity of pivot will be tried first
@@ -32,6 +32,8 @@ type socGetter struct {
3232 level redundancy.Level
3333}
3434
35+ var SOCRetryInterval = 300 * time .Millisecond
36+
3537// NewSocGetter is the getter constructor
3638func NewSocGetter (g storage.Getter , level redundancy.Level ) storage.Getter {
3739 return & socGetter {Getter : g , level : level }
@@ -76,7 +78,7 @@ func (g *socGetter) Get(ctx context.Context, addr swarm.Address) (ch swarm.Chunk
7678 var wait <- chan time.Time // nil channel to disable case
7779 // addresses used are doubling each period of search expansion
7880 // (at intervals of RetryInterval)
79- ticker := time .NewTicker (RetryInterval )
81+ ticker := time .NewTicker (SOCRetryInterval )
8082 defer ticker .Stop ()
8183 for level := uint8 (0 ); level <= uint8 (g .level ); {
8284 select {
0 commit comments