Skip to content

Commit

Permalink
Fix server output history (#1861)
Browse files Browse the repository at this point in the history
This was not reversed anymore (although the comment explained it)

---

<!-- Consider each and tick it off one way or the other -->
* [ ] CHANGELOG updated or not needed
* [ ] Documentation updated or not needed
* [ ] Haddocks updated or not needed
* [ ] No new TODOs introduced or explained herafter
  • Loading branch information
v0d1ch authored Feb 22, 2025
2 parents 7c3c3cb + 1a8bd51 commit a53f9d5
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 a53f9d5

Please sign in to comment.