Skip to content

Commit

Permalink
Update proto
Browse files Browse the repository at this point in the history
  • Loading branch information
JOOHOJANG committed Oct 1, 2024
1 parent cf7fed0 commit c5ce09f
Show file tree
Hide file tree
Showing 5 changed files with 823 additions and 856 deletions.
20 changes: 7 additions & 13 deletions api/converter/from_pb.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,25 +102,19 @@ func FromChangePack(pbPack *api.ChangePack) (*change.Pack, error) {
return nil, err
}

minSyncedVersionVector, err := FromVersionVector(pbPack.MinSyncedVersionVector)
if err != nil {
return nil, err
}

minSyncedTicket, err := fromTimeTicket(pbPack.MinSyncedTicket)
if err != nil {
return nil, err
}

pack := &change.Pack{
DocumentKey: key.Key(pbPack.DocumentKey),
Checkpoint: fromCheckpoint(pbPack.Checkpoint),
Changes: changes,
Snapshot: pbPack.Snapshot,
IsRemoved: pbPack.IsRemoved,
VersionVector: versionVector,
MinSyncedVersionVector: minSyncedVersionVector,
MinSyncedTicket: minSyncedTicket,
DocumentKey: key.Key(pbPack.DocumentKey),
Checkpoint: fromCheckpoint(pbPack.Checkpoint),
Changes: changes,
Snapshot: pbPack.Snapshot,
IsRemoved: pbPack.IsRemoved,
VersionVector: versionVector,
MinSyncedTicket: minSyncedTicket,
}

return pack, nil
Expand Down
6 changes: 0 additions & 6 deletions api/docs/yorkie/v1/resources.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -262,12 +262,6 @@ components:
description: Deprecated
title: min_synced_ticket
type: object
minSyncedVersionVector:
$ref: '#/components/schemas/yorkie.v1.VersionVector'
additionalProperties: false
description: ""
title: min_synced_version_vector
type: object
snapshot:
additionalProperties: false
description: ""
Expand Down
6 changes: 0 additions & 6 deletions api/docs/yorkie/v1/yorkie.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -470,12 +470,6 @@ components:
description: Deprecated
title: min_synced_ticket
type: object
minSyncedVersionVector:
$ref: '#/components/schemas/yorkie.v1.VersionVector'
additionalProperties: false
description: ""
title: min_synced_version_vector
type: object
snapshot:
additionalProperties: false
description: ""
Expand Down
Loading

0 comments on commit c5ce09f

Please sign in to comment.