Skip to content

Commit

Permalink
Fix server output history
Browse files Browse the repository at this point in the history
This was not reversed anymore (although the comment explained it)
  • Loading branch information
ch1bo committed Feb 22, 2025
1 parent 7c3c3cb commit 1a8bd51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hydra-node/src/Hydra/API/Server.hs
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ withAPIServer config env party persistence tracer chain pparams serverOutputFilt
-- FIXME: don't load whole history into memory
.| sinkList

history <- newTVarIO loadedHistory
-- NOTE: we need to reverse the list because we store history in a reversed
-- list in memory but in order on disk
history <- newTVarIO $ reverse loadedHistory
(notifyServerRunning, waitForServerRunning) <- setupServerNotification

let serverSettings =
Expand Down

0 comments on commit 1a8bd51

Please sign in to comment.