Skip to content

Commit

Permalink
fixup! fixup! ConsistencyManager interface & implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
rgomezp committed Sep 24, 2024
1 parent 04f294f commit 4a1f22e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import kotlinx.coroutines.sync.withLock
*/
class ConsistencyManager : IConsistencyManager {
private val mutex = Mutex()
private val indexedTokens: MutableMap<String, MutableMap<IConsistencyKeyEnum, String?>> = mutableMapOf()
private val indexedTokens: MutableMap<String, MutableMap<IConsistencyKeyEnum, String>> = mutableMapOf()
private val conditions: MutableList<Pair<ICondition, CompletableDeferred<String?>>> =
mutableListOf()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface ICondition {
* Define a condition that "unblocks" execution
* e.g. we have token (A && B) || A
*/
fun isMet(indexedTokens: Map<String, Map<IConsistencyKeyEnum, String?>>): Boolean
fun isMet(indexedTokens: Map<String, Map<IConsistencyKeyEnum, String>>): Boolean

/**
* Used to process tokens according to their format & return the newest token.
Expand Down

0 comments on commit 4a1f22e

Please sign in to comment.