Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
balanza committed Jan 13, 2025
1 parent d057fee commit ece99f3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/factsengine/plugininterface/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ func (g *GathererRPC) RequestGathering(

requestID := uuid.New().String()
args := GatheringArgs{
Facts: factsRequest,
RequestID: requestID,
FactRequests: factsRequest,
RequestID: requestID,
}

gathering := make(chan error)
Expand All @@ -49,8 +49,8 @@ type GathererRPCServer struct {
}

type GatheringArgs struct {
Facts []entities.FactRequest
RequestID string
FactRequests []entities.FactRequest
RequestID string
}

func (s *GathererRPCServer) ServeGathering(args GatheringArgs, resp *[]entities.Fact) error {
Expand All @@ -63,7 +63,7 @@ func (s *GathererRPCServer) ServeGathering(args GatheringArgs, resp *[]entities.
defer delete(s.cancelMap, args.RequestID)

var err error
*resp, err = s.Impl.Gather(ctx, args.Facts)
*resp, err = s.Impl.Gather(ctx, args.FactRequests)
return err
}

Expand Down

0 comments on commit ece99f3

Please sign in to comment.