Skip to content

Commit a8564a9

Browse files
committed
undo ioref bullshit
1 parent 44478d9 commit a8564a9

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

cardano-testnet/src/Testnet/Defaults.hs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,6 @@ defaultConwayGenesis = do
172172
, cgInitialDReps = mempty
173173
}
174174

175-
-- TODO REMOVE
176-
nCounter :: IORef Int
177-
nCounter = unsafePerformIO $ newIORef 0
178-
{-# NOINLINE nCounter #-}
179-
180175
-- | The only era supported by cardano-testnet for the moment.
181176
-- It's important to keep the era parameterization everywhere, for ease of development
182177
-- when new eras roll out.
@@ -304,13 +299,12 @@ defaultYamlHardforkViaConfig sbe =
304299
]
305300

306301
traceOptions = do
307-
let n = unsafePerformIO . atomicModifyIORef nCounter $ \n' -> (n'+1, n')
308302
Aeson.object
309303
[ "" .= Aeson.object
310304
[ "backends" .= Aeson.Array
311305
[ "EKGBackend"
312306
, "Forwarder"
313-
, fromString $ "PrometheusSimple suffix 0.0.0.0 " <> show (12798 + n - 1)
307+
, fromString $ "PrometheusSimple suffix 0.0.0.0 12798"
314308
, "Stdout HumanFormatColoured"
315309
]
316310
]

0 commit comments

Comments
 (0)