Skip to content

Commit

Permalink
Clean up codes
Browse files Browse the repository at this point in the history
  • Loading branch information
JOOHOJANG committed Oct 23, 2024
1 parent ed96982 commit 475276e
Show file tree
Hide file tree
Showing 7 changed files with 173 additions and 176 deletions.
2 changes: 1 addition & 1 deletion api/docs/yorkie/v1/resources.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ components:
minSyncedTicket:
$ref: '#/components/schemas/yorkie.v1.TimeTicket'
additionalProperties: false
description: Deprecated
description: ""
title: min_synced_ticket
type: object
snapshot:
Expand Down
2 changes: 1 addition & 1 deletion api/docs/yorkie/v1/yorkie.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ components:
minSyncedTicket:
$ref: '#/components/schemas/yorkie.v1.TimeTicket'
additionalProperties: false
description: Deprecated
description: ""
title: min_synced_ticket
type: object
snapshot:
Expand Down
297 changes: 148 additions & 149 deletions api/yorkie/v1/admin.pb.go

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions api/yorkie/v1/admin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,12 @@ message RemoveDocumentByAdminResponse {}
message GetSnapshotMetaRequest {
string project_name = 1;
string document_key = 2;
int64 server_seq = 3 [jstype = JS_STRING];
int64 server_seq = 3;
}

message GetSnapshotMetaResponse {
bytes snapshot = 1;
int64 lamport = 2 [jstype = JS_STRING];
int64 lamport = 2;
VersionVector version_vector = 3;
}

Expand All @@ -179,7 +179,7 @@ message SearchDocumentsResponse {
message ListChangesRequest {
string project_name = 1;
string document_key = 2;
int64 previous_seq = 3 [jstype = JS_STRING];
int64 previous_seq = 3;
int32 page_size = 4;
bool is_forward = 5;
}
Expand Down
36 changes: 18 additions & 18 deletions api/yorkie/v1/resources.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions api/yorkie/v1/resources.proto
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@ message ChangePack {
Checkpoint checkpoint = 2;
bytes snapshot = 3;
repeated Change changes = 4;
TimeTicket min_synced_ticket = 5;
bool is_removed = 6;
VersionVector version_vector = 7;

TimeTicket min_synced_ticket = 5; // Deprecated
}

message Change {
Expand Down
3 changes: 1 addition & 2 deletions cmd/yorkie/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ func getMigrationVersionsInRange(from, to string) ([]string, error) {
sort.Slice(versions, func(i, j int) bool {
compare, err := compareVersions(versions[i], versions[j])
if err != nil {
fmt.Printf("Error comparing versions: %v\n", err)
return false
panic(fmt.Errorf("error comparing versions: %w", err))
}
return compare == -1
})
Expand Down

0 comments on commit 475276e

Please sign in to comment.