) (*GetOrCreateShardResponse, error) {
createShardInfo := func() (int64, *commonpb.DataBlob, error) {
if shardInfo == nil {
shardInfo = &persistencespb.ShardInfo{}
}
shardInfo.UpdateTime = timestamp.TimeNowPtrUtc()
data, err := m.serializer.ShardInfoToBlob(shardInfo)
if err != nil {
return 0, nil, err
}
}
internalResp, err := m.shardStore.GetOrCreateShard(ctx, &InternalGetOrCreateShardRequest{