Skip to content

Commit 1a1545b

Browse files
cstocktonChris Stockton
andauthored
chore: disable template pre-fetching (#2327)
Disable the template pre-fetching at startup. Co-authored-by: Chris Stockton <chris.stockton@supabase.io>
1 parent 711763c commit 1a1545b

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

cmd/serve_cmd.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,6 @@ func serve(ctx context.Context) {
6363
defer wg.Wait() // Do not return to caller until this goroutine is done.
6464

6565
mrCache := templatemailer.NewCache()
66-
if !config.Mailer.TemplateReloadingEnabled {
67-
// If template reloading is disabled attempt an initial reload at
68-
// startup for fault tolerance.
69-
wg.Add(1)
70-
go func() {
71-
defer wg.Done()
72-
73-
mrCache.Reload(ctx, config)
74-
}()
75-
}
76-
7766
limiterOpts := api.NewLimiterOptions(config)
7867
initialAPI := api.NewAPIWithVersion(
7968
config, db, utilities.Version,

0 commit comments

Comments
 (0)