-
-
Notifications
You must be signed in to change notification settings - Fork 85
feat: periodically check auth_query creds #464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| @interval :timer.seconds(15) | ||
|
|
||
| def start_link(args) do | ||
| name = {:via, Registry, {Supavisor.Registry.Tenants, {:secret_checker, args.id}}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need that registry at all? It doesn't seem to be used for anything.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, it can be very useful during debugging
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not 100% sure if it is good approach. Maybe we could use Process.set_label/1 in the future instead?
| end | ||
|
|
||
| def terminate(_, state) do | ||
| :gen_statem.stop(state.conn) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird that Postgrex do not offer Postgrex.stop/1 function. Maybe it would be worth adding such function upstream?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, I've been wanting to add this PR to Postgrex for a long time
Co-authored-by: Łukasz Jan Niemier <[email protected]>
No description provided.