mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-04 22:39:46 +00:00
more casing
This commit is contained in:
committed by
Aiden McClelland
parent
41b01efed3
commit
b3ab312088
@@ -153,7 +153,7 @@ expirationOsVersionLatest = 60
|
|||||||
getOsVersionLatest :: MonadIO m => AgentCtx -> m (Maybe Version)
|
getOsVersionLatest :: MonadIO m => AgentCtx -> m (Maybe Version)
|
||||||
getOsVersionLatest ctx = do
|
getOsVersionLatest ctx = do
|
||||||
now <- liftIO getCurrentTime
|
now <- liftIO getCurrentTime
|
||||||
let osVersionCache = appOSVersionLatest ctx
|
let osVersionCache = appOsVersionLatest ctx
|
||||||
mCache <- liftIO . readIORef $ osVersionCache
|
mCache <- liftIO . readIORef $ osVersionCache
|
||||||
|
|
||||||
case mCache of
|
case mCache of
|
||||||
@@ -164,7 +164,7 @@ getOsVersionLatest ctx = do
|
|||||||
|
|
||||||
repopulateCache :: MonadIO m => AgentCtx -> m (Maybe Version)
|
repopulateCache :: MonadIO m => AgentCtx -> m (Maybe Version)
|
||||||
repopulateCache ctx = do
|
repopulateCache ctx = do
|
||||||
let osVersionCache = appOSVersionLatest ctx
|
let osVersionCache = appOsVersionLatest ctx
|
||||||
let s = appSettings ctx
|
let s = appSettings ctx
|
||||||
eitherV <- interp s $ Reg.getLatestAgentVersion
|
eitherV <- interp s $ Reg.getLatestAgentVersion
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user