Closed jvatic closed 1 year ago
(rebased to get checks passing)
making it more configurable is a good idea! We're moving away from making the default symbol table configurable though, this makes interoperability a lot harder.
would it be possible to make parameters like timeout configurable without setting the entire base world?
would it be possible to make parameters like timeout configurable without setting the entire base world?
Yup! Are you thinking something like this?
func WithWorldOptions(opts ...datalog.WorldOption) AuthorizerOption {
// ...
}
alright, sounds good!
I've run into some cases where the default world max duration wasn't quite enough, resulting in intermittent failures. This PR exposes options to the caller to override the default limits (and for completeness, the default symbol table).
e.g.