chore: tunnel recorder & slight refactor
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-09-27 17:49:59 -04:00
parent 20c1388cf4
commit 0722e5f032
17 changed files with 725 additions and 285 deletions

View File

@@ -1,6 +1,8 @@
package cmd
import (
"context"
"reichard.io/conduit/config"
"reichard.io/conduit/server"
@@ -19,8 +21,11 @@ var serveCmd = &cobra.Command{
log.Fatal("failed to get server config:", err)
}
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
// Create Server
srv, err := server.NewServer(cfg)
srv, err := server.NewServer(ctx, cfg)
if err != nil {
log.Fatal("failed to create server:", err)
}