use new ctx

This commit is contained in:
Daniel Ponte 2024-08-04 15:29:07 -04:00
parent 0e82b8a363
commit 3f11a70e8e

View file

@ -4,13 +4,8 @@ import (
"context"
"dynatron.me/x/stillbox/pkg/gordio/calls"
"dynatron.me/x/stillbox/pkg/gordio/database"
)
func (s *Server) Ingest(ctx context.Context, call *calls.Call) {
// decouple this context from the one we call sinks with
db := database.FromCtx(ctx)
nctx := database.CtxWithDB(context.Background(), db)
s.sinks.EmitCall(nctx, call)
s.sinks.EmitCall(context.Background(), call)
}