feat: tokenization start, waitlist for background task graceful exit
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"database/sql"
|
||||
"flag"
|
||||
"os"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/joho/godotenv"
|
||||
@@ -57,6 +58,7 @@ type application struct {
|
||||
logger *jsonlog.Logger
|
||||
models data.Models
|
||||
mailer mailer.Mailer
|
||||
wg sync.WaitGroup
|
||||
}
|
||||
|
||||
func main() {
|
||||
@@ -94,7 +96,7 @@ func main() {
|
||||
// make sure to replace the default values for smtp-username and smtp-password
|
||||
// with your own Mailtrap credentials.
|
||||
flag.StringVar(&cfg.smtp.host, "smtp-host", "sandbox.smtp.mailtrap.io", "SMTP host")
|
||||
flag.IntVar(&cfg.smtp.port, "smtp-port", 25, "SMTP port")
|
||||
flag.IntVar(&cfg.smtp.port, "smtp-port", 2525, "SMTP port")
|
||||
flag.StringVar(&cfg.smtp.username, "smtp-username", "3d946287da35ea", "SMTP username")
|
||||
flag.StringVar(&cfg.smtp.password, "smtp-password", "d06a774b484ca3", "SMTP password")
|
||||
flag.StringVar(&cfg.smtp.sender, "smtp-sender", "Greenlight <no-reply@greenlight.debuggingjon.dev>", "SMTP sender")
|
||||
|
||||
Reference in New Issue
Block a user