Skip to content

Commit

Permalink
[fix] move Tracing to HydraAuctionUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
MangoIV committed Apr 3, 2023
1 parent 84ebead commit 88d01f5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion delegate-app/HydraAuction/Delegate/Server.hs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import Hydra.Network (IP, PortNumber)

-- Hydra auction imports
import HydraAuction.Delegate.Interface (DelegateResponse, FrontendRequest)
import HydraAuction.Delegate.Tracing (TracerT)
import HydraAuction.Types (AuctionTerms)
import HydraAuctionUtils.Tracing (TracerT)

-- | The config for the delegate server
data DelegateServerConfig = DelegateServerConfig
Expand Down
2 changes: 1 addition & 1 deletion delegate-app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ import HydraAuction.Delegate.Server (
ServerAppT,
ThreadSort (DelegateRunnerThread, QueueAuctionStageThread, WebsocketThread),
)
import HydraAuction.Delegate.Tracing (MonadTracer (trace), askTracer, runWithTracer')
import HydraAuction.OnChain.Common (secondsLeftInInterval, stageToInterval)
import HydraAuction.Tx.Common (currentAuctionStage, currentTimeMilliseconds)
import HydraAuction.Types (AuctionTerms)
import HydraAuctionUtils.Tracing (MonadTracer (trace), askTracer, runWithTracer')

{- | per websocket, a thread gets spawned which then
subscribes to the broadcast channel and sends to
Expand Down
6 changes: 2 additions & 4 deletions hydra-auction.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,7 @@ executable hydra-auction
executable hydra-auction-delegate
import: common-lang
main-is: Main.hs
other-modules:
HydraAuction.Delegate.Server
HydraAuction.Delegate.Tracing

other-modules: HydraAuction.Delegate.Server
hs-source-dirs: delegate-app
ghc-options: -threaded -rtsopts
build-depends:
Expand Down Expand Up @@ -243,6 +240,7 @@ library hydra-auction-utils
HydraAuctionUtils.Extras.PlutusOrphans
HydraAuctionUtils.Fixture
HydraAuctionUtils.Monads
HydraAuctionUtils.Tracing
Paths_hydra_auction

build-depends:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE RankNTypes #-}

module HydraAuction.Delegate.Tracing (
module HydraAuctionUtils.Tracing (
-- * tracing types

-- ** tracing transformer
Expand Down

0 comments on commit 88d01f5

Please sign in to comment.