Skip to content

Commit

Permalink
use request context for controller connections
Browse files Browse the repository at this point in the history
  • Loading branch information
kian99 committed Jul 16, 2024
1 parent 4bfd2a9 commit fca9ff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/jujuapi/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (s *apiServer) ServeWS(ctx context.Context, conn *websocket.Conn) {
controllerRoot := newControllerRoot(s.jimm, s.params, identityId)
s.cleanup = controllerRoot.cleanup
Dblogger := controllerRoot.newAuditLogger()
serveRoot(context.Background(), controllerRoot, Dblogger, conn)
serveRoot(ctx, controllerRoot, Dblogger, conn)
}

// Kill implements the rpc.Killer interface.
Expand Down

0 comments on commit fca9ff3

Please sign in to comment.