1256
func replicationHistoryTaskFromProto(
1257
historyTask *persistencespb.ReplicationTaskInfo,
1259
>
visibilityTimestamp := time.Unix(0, 0)
1260
>
if historyTask.VisibilityTime != nil {
1261
visibilityTimestamp = historyTask.VisibilityTime.AsTime()
1262
}
1264
>
WorkflowKey: definition.NewWorkflowKey(
1265
>
historyTask.NamespaceId,
1266
>
historyTask.WorkflowId,
1267
>
historyTask.RunId,
1268
>
),
1269
>
VisibilityTimestamp: visibilityTimestamp,
1270
>
TaskID: historyTask.TaskId,
1271
>
FirstEventID: historyTask.FirstEventId,
1272
>
NextEventID: historyTask.NextEventId,
1273
>
Version: historyTask.Version,
1274
>
BranchToken: historyTask.BranchToken,
1275
>
NewRunBranchToken: historyTask.NewRunBranchToken,
1276
>
NewRunID: historyTask.NewRunId,
1277
>
TargetClusters: historyTask.TargetClusters,
1278
>
}
1279
}
1280