Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
aleks-p committed Oct 17, 2024
1 parent 1d307fa commit 88068b8
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions pkg/experiment/metastore/metastore.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,18 +273,6 @@ func (m *Metastore) initRaft() (err error) {
return nil
}

func (m *Metastore) OnLeaderChange(state raft.RaftState) {
if state == raft.Leader {
m.dlq.Start()
m.placementMgr.Start()
m.blockCleaner.Start()
} else {
m.dlq.Stop()
m.placementMgr.Stop()
m.blockCleaner.Stop()
}
}

func (m *Metastore) openRaftStore() (hasState bool, err error) {
if err = m.createRaftDirs(); err != nil {
return false, err
Expand Down

0 comments on commit 88068b8

Please sign in to comment.