Skip to content

Conversation

@somdoron
Copy link
Contributor

No description provided.

)
// Simplified demo - just show that KVStateMachine compiles
// Full integration would require session management setup
ZIO.succeed(println("KVStore with SessionStateMachine - compilation successful")).exitCode
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very simple 😆


// Helpers
private def putValue(key: KVKey, value: String): SW[Unit] =
StateWriter.update[HMap[Schema], HMap[Schema]](s => s.updated["kv"](key, value))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we maybe add helper methods to SessionStateMachine like get and update? maybe to simplify StateWriter.update[HMap[Schema], HMap[Schema]] ?

@somdoron somdoron force-pushed the 004-add-client-server branch from b51518a to f95d8fc Compare October 27, 2025 17:28
@somdoron somdoron force-pushed the 004-add-client-server branch from 95766c9 to 505c3a4 Compare October 28, 2025 04:57
@somdoron somdoron force-pushed the 004-add-client-server branch from 505c3a4 to 450985a Compare October 28, 2025 04:58
ZIO
.logDebug(s"memberId=${this.memberId} read pending command index=$index")
.as(l.withReadPendingCommand(r.promise, index))
case None if peers.size == 0 =>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@keisar reading state one a singe node cluster didn't work... I added this

@somdoron somdoron marked this pull request as ready for review October 28, 2025 11:00
@somdoron somdoron merged commit 1522d92 into unit-finance:main Oct 28, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants