Skip to content

Commit

Permalink
Remove SlabPruningCooldown from the bus config. (#1175)
Browse files Browse the repository at this point in the history
Refactor leftover I'm guessing(?) we weren't using it so I removed it.
  • Loading branch information
ChrisSchinnerl authored Apr 17, 2024
2 parents e4e4a6e + f54412a commit a4f7d29
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion bus/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ func newTestClient(dir string) (*client.Client, func() error, func(context.Conte
},
Miner: node.NewMiner(client),
SlabPruningInterval: time.Minute,
SlabPruningCooldown: time.Minute,
}, filepath.Join(dir, "bus"), types.GeneratePrivateKey(), zap.New(zapcore.NewNopCore()))
if err != nil {
return nil, nil, nil, err
Expand Down
1 change: 0 additions & 1 deletion cmd/renterd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,6 @@ func main() {
Bus: cfg.Bus,
Network: network,
SlabPruningInterval: time.Hour,
SlabPruningCooldown: 30 * time.Second,
}
// Init db dialector
if cfg.Database.MySQL.URI != "" {
Expand Down
1 change: 0 additions & 1 deletion internal/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ type BusConfig struct {
DBDialector gorm.Dialector
DBMetricsDialector gorm.Dialector
SlabPruningInterval time.Duration
SlabPruningCooldown time.Duration
}

type AutopilotConfig struct {
Expand Down
1 change: 0 additions & 1 deletion internal/test/e2e/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,6 @@ func testBusCfg() node.BusConfig {
},
Network: testNetwork(),
SlabPruningInterval: time.Second,
SlabPruningCooldown: 10 * time.Millisecond,
}
}

Expand Down

0 comments on commit a4f7d29

Please sign in to comment.