Merge branch 'origin/main' into 'next-release/main'

This commit is contained in:
oauth 2024-11-26 21:25:30 +00:00
commit 3886df589f

View file

@ -133,7 +133,7 @@ func run(ctx context.Context, c *cli.Command, backends []types.Backend) error {
agentConfig := readAgentConfig(agentConfigPath)
agentToken := c.String("grpc-token")
agentToken := strings.TrimSpace(c.String("grpc-token"))
grpcClientCtx, grpcClientCtxCancel := context.WithCancelCause(context.Background())
defer grpcClientCtxCancel(nil)
authClient := agent_rpc.NewAuthGrpcClient(authConn, agentToken, agentConfig.AgentID)