Skip to content

Commit

Permalink
bus: remove unused pruning cooldown config
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjan committed Apr 17, 2024
1 parent 743b2a8 commit f54412a
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 f54412a

Please sign in to comment.