File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,7 @@ const (
190190 reserveWakeUpDuration = 15 * time .Minute // time to wait before waking up reserveWorker
191191 reserveMinEvictCount = 1_000
192192 cacheMinEvictCount = 10_000
193+ maxAllowedDoubling = 1
193194)
194195
195196func NewBee (
@@ -254,9 +255,8 @@ func NewBee(
254255 return nil , fmt .Errorf ("reserve capacity doubling is only allowed for full nodes" )
255256 }
256257
257- const maxAllowedDoubling = 1
258258 if o .ReserveCapacityDoubling < 0 || o .ReserveCapacityDoubling > maxAllowedDoubling {
259- return nil , fmt .Errorf ("config reserve capacity doubling has to be between default: 0 and maximum: 1" )
259+ return nil , fmt .Errorf ("config reserve capacity doubling has to be between default: 0 and maximum: %d" , maxAllowedDoubling )
260260 }
261261 var shallowReceiptTolerance = maxAllowedDoubling - o .ReserveCapacityDoubling
262262
You can’t perform that action at this time.
0 commit comments