Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2177 from weaveworks/fix/2167-sync-tag-state
Browse files Browse the repository at this point in the history
Move lastKnownSyncTag out of for loop
  • Loading branch information
hiddeco authored Jun 24, 2019
2 parents af9d3be + 8e8279f commit a526626
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions daemon/loop.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ func (d *Daemon) Loop(stop chan struct{}, wg *sync.WaitGroup, logger log.Logger)
// every timer tick as well as every mirror refresh.
syncHead := ""

// In-memory sync tag state
lastKnownSyncTag := &lastKnownSyncTag{logger: logger, syncTag: d.GitConfig.SyncTag}

// Ask for a sync, and to poll images, straight away
d.AskForSync()
d.AskForImagePoll()

for {
var (
lastKnownSyncTag = &lastKnownSyncTag{logger: logger, syncTag: d.GitConfig.SyncTag}
)
select {
case <-stop:
logger.Log("stopping", "true")
Expand Down

0 comments on commit a526626

Please sign in to comment.