Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
srene committed Nov 29, 2024
1 parent 8211aa3 commit 4b1c0ed
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions block/fork.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ const (

// MonitorForkUpdateLoop monitors the hub for fork updates in a loop
func (m *Manager) MonitorForkUpdateLoop(ctx context.Context) error {
// if instruction already exists no need to check for fork update
if types.InstructionExists(m.RootDir) {
return nil
}

ticker := time.NewTicker(ForkMonitorInterval) // TODO make this configurable
defer ticker.Stop()

Expand All @@ -39,10 +44,6 @@ func (m *Manager) MonitorForkUpdateLoop(ctx context.Context) error {

// checkForkUpdate checks if the hub has a fork update
func (m *Manager) checkForkUpdate(msg string) error {
// if instruction already exists no need to check for fork update
if types.InstructionExists(m.RootDir) {
return nil
}

rollapp, err := m.SLClient.GetRollapp()
if err != nil {
Expand Down

0 comments on commit 4b1c0ed

Please sign in to comment.