good morning!!!!

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

fix context

parent 95f688bb
No related branches found
No related tags found
Loading
Pipeline #90906 failed with stages
in 1 minute and 44 seconds
......@@ -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.
Finish editing this message first!
Please register or to comment