Do I need to call store.Abort when calling store.Commit returns an error? #437
Answered
by
charlieegan3
Zacama
asked this question in
OPA and Rego
-
Hello, I am new to using OPA. I have a problem integrating OPA with Go. |
Beta Was this translation helpful? Give feedback.
Answered by
charlieegan3
Jun 5, 2023
Replies: 1 comment 1 reply
-
Hey, I don't believe so. You should just need to handle the error of the commit. See the interface here for a few comments on each function: https://pkg.go.dev/github.com/open-policy-agent/opa/storage#Store |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Zacama
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, I don't believe so. You should just need to handle the error of the commit.
See the interface here for a few comments on each function: https://pkg.go.dev/github.com/open-policy-agent/opa/storage#Store