use new ctx
This commit is contained in:
parent
0e82b8a363
commit
3f11a70e8e
1 changed files with 1 additions and 6 deletions
|
@ -4,13 +4,8 @@ import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"dynatron.me/x/stillbox/pkg/gordio/calls"
|
"dynatron.me/x/stillbox/pkg/gordio/calls"
|
||||||
"dynatron.me/x/stillbox/pkg/gordio/database"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func (s *Server) Ingest(ctx context.Context, call *calls.Call) {
|
func (s *Server) Ingest(ctx context.Context, call *calls.Call) {
|
||||||
// decouple this context from the one we call sinks with
|
s.sinks.EmitCall(context.Background(), call)
|
||||||
db := database.FromCtx(ctx)
|
|
||||||
nctx := database.CtxWithDB(context.Background(), db)
|
|
||||||
|
|
||||||
s.sinks.EmitCall(nctx, call)
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue