Skip to content

Commit 1554a55

Browse files
Fix panic
1 parent 9d8b7e1 commit 1554a55

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

core/services/cre/cre.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,9 @@ func newWorkflowRegistrySyncerV2(
981981
if err != nil {
982982
return nil, nil, err
983983
}
984-
shardOrchestratorClient = c
984+
if c != nil {
985+
shardOrchestratorClient = c
986+
}
985987
}
986988

987989
shardingEnabled := cfg.Sharding().ShardingEnabled()

0 commit comments

Comments
 (0)