Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion fleetspeak/src/server/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ type Service interface {
// net.Error which reports as a timeout or temporary error, the message will
// be retried according the ServerRetryPolicy. Otherwise the error will be
// assumed to be permanent.
ProcessMessage(context.Context, *fspb.Message) error
// The implementation is allowed to set `m.Data = nil` to optimize memory
// usage if the operation is successful. On failure, it must make sure that
// `m.Data` is still intact when returning.
ProcessMessage(ctx context.Context, m *fspb.Message) error

// Stop initiates and waits for an orderly shut down. It will only be
// called when there are no more active calls to ProcessMessage and
Expand Down
Loading