This commit is contained in:
Evgeny Poberezkin
2024-10-23 12:57:58 +01:00
parent b1c8c17e4e
commit ca1420c9a5
@@ -248,10 +248,11 @@ instance MsgStoreClass JournalMsgStore where
where
listDirs = fmap catMaybes . mapM queuePath =<< listDirectory path
queuePath dir = do
let path' = path </> dir
let !path' = path </> dir
!queueId' = queueId <> dir
ifM
(doesDirectoryExist path')
(pure $ Just (queueId <> dir, path'))
(pure $ Just (queueId', path'))
(Nothing <$ putStrLn ("Error: path " <> path' <> " is not a directory, skipping"))
logQueueStates :: JournalMsgStore -> IO ()