From 5b8a702c4c5bcd6746372d5d839d3a9f0b753741 Mon Sep 17 00:00:00 2001 From: talksik Date: Tue, 14 Apr 2026 14:44:26 -0700 Subject: [PATCH] remove unnecessary comments --- go/cmd/orion/main.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/go/cmd/orion/main.go b/go/cmd/orion/main.go index 9993c0a..b45faf0 100644 --- a/go/cmd/orion/main.go +++ b/go/cmd/orion/main.go @@ -36,14 +36,11 @@ func main() { port := utils.MustGetEnv("PORT") gcsBucket := utils.MustGetEnv("GCS_BUCKET") - // Initialize database db.Init() defer db.Cleanup() - // Initialize Redis for auth redisClient := redisForAuth() - // Initialize GCS client ctx := context.Background() storageClient, err := storage.NewClient(ctx) if err != nil { @@ -65,8 +62,6 @@ func main() { defer aeroServer.Close() aeroSvc := pbaero.NewPrimaryClient(aeroServer) - // Initialize services. Billing is built before network because network - // reports seat-count changes to billing on member writes. authSvc := auth.NewAuthService(redisClient, aeroSvc) humanSvc := human.NewService(db.Pool()) @@ -92,7 +87,6 @@ func main() { waitlistSvc := waitlist.NewService(db.Pool(), aeroSvc) livekitClient := livekit.NewClient() - // Initialize Firestore client (for webhook-driven updates) gcpProject := utils.MustGetEnv("GCP_PROJECT") firestoreClient, err := firestore.NewClient(ctx, gcpProject) if err != nil { @@ -101,10 +95,8 @@ func main() { } defer firestoreClient.Close() - // Initialize handler h := handler.NewHandler(authSvc, humanSvc, networkSvc, particleSvc, depotSvc, waitlistSvc, billingSvc, livekitClient, firestoreClient) - // Helper to wrap handlers with auth middleware withAuth := func(hf http.HandlerFunc) http.Handler { return middleware.Auth(authSvc)(http.HandlerFunc(hf)) }