Skip to content

Commit

Permalink
Set flags on MessageData before OnMessage callback
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsillydog committed Jan 14, 2025
1 parent cd6ccd7 commit 9a8dabd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/internal/receivedprocessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ func (r *receivedProcessor) ProcessReceivedMessage(ctx context.Context, msg *pro
r.logger.Errorf(ctx, "cannot processed received flags:%v", err)
}

msgData := &types.MessageData{}
msgData := &types.MessageData{
Flags: protobufs.ServerToAgentFlags(msg.Flags),
}

if msg.RemoteConfig != nil {
if r.hasCapability(protobufs.AgentCapabilities_AgentCapabilities_AcceptsRemoteConfig) {
Expand Down

0 comments on commit 9a8dabd

Please sign in to comment.