Skip to content

Conversation

@joshuaslate
Copy link
Contributor

@joshuaslate joshuaslate commented Jun 27, 2025

I'm trying to fix the following error from TransitionInTx:

rpc error: code = FailedPrecondition desc = event key date value year:2025 month:6 day:26 does not match existing value year:2025 month:6 day:26

I thought to maybe make an interface that the key types could implement, something like:

type Comparable interface {
  Equals(other any) bool
}

So something like:

PSMKeyValues() (map[string]Comparable, error)

Instead of:

PSMKeyValues() (map[string]any, error)

@joshuaslate joshuaslate requested a review from daemonl June 27, 2025 21:54
@joshuaslate
Copy link
Contributor Author

This fixed my issue. Dan told me I should go ahead and merge.

@joshuaslate joshuaslate merged commit ea6dfe7 into main Jun 27, 2025
3 checks passed
@joshuaslate joshuaslate deleted the date-equality-transition branch June 27, 2025 22:05
@daemonl daemonl mentioned this pull request Jul 30, 2025
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