Skip to content

Commit

Permalink
healthMonitor: update cabal file
Browse files Browse the repository at this point in the history
  • Loading branch information
YangKian committed Jun 19, 2024
1 parent adcc752 commit 1de7b0b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
1 change: 1 addition & 0 deletions hstream/hstream.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ library
HStream.Server.Types
HStream.Server.Validation
HStream.Server.CacheStore
HStream.Server.HealthMonitor

other-modules:
HStream.Server.Core.Query
Expand Down
31 changes: 14 additions & 17 deletions hstream/src/HStream/Server/HealthMonitor.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,21 @@ module HStream.Server.HealthMonitor
)
where

import Control.Concurrent (threadDelay)
import Control.Exception (SomeException,
try)
import Control.Monad (forever, when)
import Control.Concurrent (threadDelay)
import Control.Exception (SomeException, try)
import Control.Monad (forever, when)

import HStream.Common.ZookeeperClient (unsafeGetZHandle)
import qualified HStream.Logger as Log
import HStream.MetaStore.Types (MetaHandle (..))
import HStream.MetaStore.ZookeeperUtils (checkRecoverable)
import HStream.Server.CacheStore (StoreMode (..),
dumpToHStore,
initCacheStore,
setCacheStoreMode)
import HStream.Server.Types (ServerContext (..),
ServerMode (..),
getServerMode,
setServerMode)
import qualified HStream.Store as S
import HStream.Common.ZookeeperClient (unsafeGetZHandle)
import qualified HStream.Logger as Log
import HStream.MetaStore.Types (MetaHandle (..))
import HStream.MetaStore.ZookeeperUtils (checkRecoverable)
import HStream.Server.CacheStore (StoreMode (..), dumpToHStore,
initCacheStore,
setCacheStoreMode)
import HStream.Server.Types (ServerContext (..),
ServerMode (..),
getServerMode, setServerMode)
import qualified HStream.Store as S

data HealthMonitor = HealthMonitor
{ ldChecker :: S.LdChecker
Expand Down

0 comments on commit 1de7b0b

Please sign in to comment.