Skip to content

Conversation

@abc3
Copy link
Contributor

@abc3 abc3 commented Oct 23, 2024

No description provided.

@abc3 abc3 requested a review from a team as a code owner October 23, 2024 14:26
@interval :timer.seconds(15)

def start_link(args) do
name = {:via, Registry, {Supavisor.Registry.Tenants, {:secret_checker, args.id}}}
Copy link
Contributor

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.

Copy link
Contributor Author

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

Copy link
Contributor

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)
Copy link
Contributor

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?

Copy link
Contributor Author

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

abc3 and others added 2 commits October 25, 2024 14:29
@abc3 abc3 merged commit de98cd6 into v2 Oct 25, 2024
5 checks passed
@abc3 abc3 deleted the feat/check_auth_query branch October 25, 2024 12:10
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.

3 participants