mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-20 02:09:41 +00:00
22ed97f562
sendViaProviderWithAddresses mutated the shared e.config.Username for provider-specific defaults (SendGrid, Postmark, SparkPost, Resend). If concurrent goroutines sent email simultaneously, this was a data race on the config struct. Move the resolution into negotiateAuth via a local variable (resolveProviderUsername helper) so the shared config is never mutated.