You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
case class BlockCache(byId: Map[BlockId, BlockInfo], byHeight: SortedMap[Int, BlockInfo])
case class ProgressState(
lastBlockIdInEpoch: SortedMap[Int, BlockId],
invalidEpochs: SortedMap[Int, InvalidEpochCandidate],
blockCache: BlockCache
)
val x =
stateRef.transformAndExtract { state =>
val (e, newState) = state.update(withSomeThingThatDefinitelyChangesTheState)
if (state != newState)
logger.info(s"$e, $newState")
else
logger.info(s"It is the same $e, $newState") /// NEVER CALLED
(e, newState)
}
logger.info(s"HAAAAAAAAAAAAAAAAAAAA")
x
Now the callback executes multiple times even though the state is always different, update operation is simple, referentially transparent method running only on current thread.
Now the callback executes multiple times even though the state is always different,
update
operation is simple, referentially transparent method running only on current thread.The text was updated successfully, but these errors were encountered: