good morning!!!!

Skip to content
Snippets Groups Projects
Commit 8ca79c4a authored by Thomas Guinther's avatar Thomas Guinther
Browse files

fix context

parent 95f688bb
Branches
Tags
No related merge requests found
Pipeline #90906 failed
......@@ -63,7 +63,7 @@ func (t *otelTrace) process(ctx context.Context, packet fed.Packet) {
switch packet.Type() {
case packets.TypeQuery:
t.setState(Query)
t.startQuery(context.Background(), packet)
t.startQuery(ctx, packet)
}
case Query:
switch packet.Type() {
......
......@@ -30,7 +30,7 @@ func (T *Module) CaddyModule() caddy.ModuleInfo {
func (T *Module) Handle(next gat.Router) gat.Router {
return gat.RouterFunc(func(ctx context.Context, conn *fed.Conn) error {
if err := frontends.Authenticate(
context.Background(),
ctx,
conn,
credentials.FromString(conn.User, T.Password),
); err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment