File tree Expand file tree Collapse file tree 1 file changed +7
-13
lines changed
Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,11 @@ type Scheduler struct {
5454 compiledSpec * scheduler.CompiledSpec // compiledSpec is only ever replaced whole, not mutated.
5555}
5656
57+ var (
58+ _ (chasm.VisibilitySearchAttributesProvider ) = (* Scheduler )(nil )
59+ _ (chasm.VisibilityMemoProvider ) = (* Scheduler )(nil )
60+ )
61+
5762const (
5863 // How many recent actions to keep on the Info.RecentActions list.
5964 recentActionCount = 10
@@ -697,19 +702,8 @@ func (s *Scheduler) SearchAttributes(chasm.Context) []chasm.SearchAttributeKeyVa
697702// Memo returns the scheduler's info block for visibility.
698703func (s * Scheduler ) Memo (
699704 ctx chasm.Context ,
700- ) map [string ]chasm.VisibilityValue {
701- newInfo := s .ListInfo (ctx )
702-
703- infoPayload , err := proto.MarshalOptions {
704- Deterministic : true ,
705- }.Marshal (newInfo )
706- if err != nil {
707- return nil
708- }
709-
710- return map [string ]chasm.VisibilityValue {
711- visibilityMemoFieldInfo : chasm .VisibilityValueByteSlice (infoPayload ),
712- }
705+ ) proto.Message {
706+ return s .ListInfo (ctx )
713707}
714708
715709// ListInfo returns the ScheduleListInfo, used as the visibility memo, and to
You can’t perform that action at this time.
0 commit comments