don't delay at startup
Still wait 1 minute after a change before waiting on the next change, but don't wait at the start, when we might get a pull that contains config changes right away.
This commit is contained in:
parent
f6208bca0d
commit
a1bd5b1fa0
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,6 @@ configMonitorThread :: NamedThread
|
||||||
configMonitorThread = NamedThread "ConfigMonitor" $ loop =<< getConfigs
|
configMonitorThread = NamedThread "ConfigMonitor" $ loop =<< getConfigs
|
||||||
where
|
where
|
||||||
loop old = do
|
loop old = do
|
||||||
liftIO $ threadDelaySeconds (Seconds 60)
|
|
||||||
waitBranchChange
|
waitBranchChange
|
||||||
new <- getConfigs
|
new <- getConfigs
|
||||||
when (old /= new) $ do
|
when (old /= new) $ do
|
||||||
|
@ -49,6 +48,7 @@ configMonitorThread = NamedThread "ConfigMonitor" $ loop =<< getConfigs
|
||||||
{- Record a commit to get this config
|
{- Record a commit to get this config
|
||||||
- change pushed out to remotes. -}
|
- change pushed out to remotes. -}
|
||||||
recordCommit
|
recordCommit
|
||||||
|
liftIO $ threadDelaySeconds (Seconds 60)
|
||||||
loop new
|
loop new
|
||||||
|
|
||||||
{- Config files, and their checksums. -}
|
{- Config files, and their checksums. -}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue