Skip to content

Commit

Permalink
refactor(runtime): improve agent initialization and naming consistency
Browse files Browse the repository at this point in the history
- Rename 'server' parameter to 'httpServer' for clarity
- Update function signature to use 'httpServer' for consistency with package naming
  • Loading branch information
godcong committed Dec 24, 2024
1 parent 17faefc commit 1851472
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ type agent struct {
}

// NewAgent creates a new Agent instance that supports both HTTP and gRPC
func NewAgent(server *transhttp.Server, grpcServer *transgrpc.Server) Agent {
func NewAgent(httpServer *transhttp.Server, grpcServer *transgrpc.Server) Agent {
return &agent{
GRPCAgent: NewGRPC(grpcServer),
HTTPAgent: NewHTTP(server),
HTTPAgent: NewHTTP(httpServer),
}
}

Expand Down

0 comments on commit 1851472

Please sign in to comment.