Skip to content

fix: add RWMutex to prevent race conditions - #52

Open
radeqq007 wants to merge 1 commit into
supabase-community:mainfrom
radeqq007:main
Open

radeqq007 wants to merge 1 commit into
supabase-community:mainfrom
radeqq007:main

Conversation

@radeqq007

Copy link
Copy Markdown
Contributor

Fixes possible race conditions by introducing a mutex to the client (multiple goroutines could be updating c.Auth, c.rest etc.)

Also adds a getAuth() helper function to safely read c.Auth

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.

1 participant