Skip to content

Commit a54d62b

Browse files
authored
fix: typo (#5299)
1 parent 7a72d9f commit a54d62b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/node/node.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,9 +1146,9 @@ func NewBee(
11461146
detector.OnStabilized = func(t time.Time, totalCount int) {
11471147
warmupMeasurement(t, totalCount)
11481148

1149-
reserveTreshold := reserveCapacity >> 1
1149+
reserveThreshold := reserveCapacity >> 1
11501150
isFullySynced := func() bool {
1151-
return pullerService.SyncRate() == 0 && saludService.IsHealthy() && localStore.ReserveSize() >= reserveTreshold
1151+
return pullerService.SyncRate() == 0 && saludService.IsHealthy() && localStore.ReserveSize() >= reserveThreshold
11521152
}
11531153

11541154
syncCheckTicker := time.NewTicker(2 * time.Second)
@@ -1186,9 +1186,9 @@ func NewBee(
11861186
redistributionContract := redistribution.New(swarmAddress, overlayEthAddress, logger, transactionService, redistributionContractAddress, abiutil.MustParseABI(chainCfg.RedistributionABI), o.TrxDebugMode)
11871187

11881188
isFullySynced := func() bool {
1189-
reserveTreshold := reserveCapacity * 5 / 10
1189+
reserveThreshold := reserveCapacity * 5 / 10
11901190
logger.Debug("Sync status check evaluated", "stabilized", detector.IsStabilized())
1191-
return localStore.ReserveSize() >= reserveTreshold && pullerService.SyncRate() == 0 && detector.IsStabilized()
1191+
return localStore.ReserveSize() >= reserveThreshold && pullerService.SyncRate() == 0 && detector.IsStabilized()
11921192
}
11931193

11941194
agent, err = storageincentives.New(

0 commit comments

Comments
 (0)