Skip to content

Commit c647c06

Browse files
committed
deterministic marhsal
1 parent 1c82519 commit c647c06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/workflows/dontime/plugin.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func (p *Plugin) Observation(_ context.Context, outctx ocr3types.OutcomeContext,
108108
Requests: requests,
109109
}
110110

111-
return proto.Marshal(observation)
111+
return proto.MarshalOptions{Deterministic: true}.Marshal(observation)
112112
}
113113

114114
func (p *Plugin) ValidateObservation(_ context.Context, oc ocr3types.OutcomeContext, _ types.Query, ao types.AttributedObservation) error {
@@ -192,7 +192,7 @@ func (p *Plugin) Outcome(_ context.Context, outctx ocr3types.OutcomeContext, _ t
192192
}
193193
}
194194

195-
return proto.Marshal(outcome)
195+
return proto.MarshalOptions{Deterministic: true}.Marshal(outcome)
196196
}
197197

198198
func (p *Plugin) Reports(_ context.Context, _ uint64, outcome ocr3types.Outcome) ([]ocr3types.ReportPlus[[]byte], error) {

0 commit comments

Comments
 (0)