Skip to content

Commit

Permalink
Restore interface changes due to server DB sharding (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
7hong13 authored Jan 31, 2024
1 parent e6e3a00 commit 767c3b4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
9 changes: 0 additions & 9 deletions yorkie/proto/src/main/proto/yorkie/v1/yorkie.proto
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,13 @@ message ActivateClientResponse {
}

message DeactivateClientRequest {
string client_key = 2;
string client_id = 1;
}

message DeactivateClientResponse {
}

message AttachDocumentRequest {
string client_key = 3;
string client_id = 1;
ChangePack change_pack = 2;
}
Expand All @@ -67,7 +65,6 @@ message AttachDocumentResponse {
}

message DetachDocumentRequest {
string client_key = 5;
string client_id = 1;
string document_id = 2;
ChangePack change_pack = 3;
Expand All @@ -79,9 +76,7 @@ message DetachDocumentResponse {
}

message WatchDocumentRequest {
string client_key = 4;
string client_id = 1;
string document_key = 3;
string document_id = 2;
}

Expand All @@ -97,7 +92,6 @@ message WatchDocumentResponse {
}

message RemoveDocumentRequest {
string client_key = 4;
string client_id = 1;
string document_id = 2;
ChangePack change_pack = 3;
Expand All @@ -108,7 +102,6 @@ message RemoveDocumentResponse {
}

message PushPullChangesRequest {
string client_key = 5;
string client_id = 1;
string document_id = 2;
ChangePack change_pack = 3;
Expand All @@ -120,9 +113,7 @@ message PushPullChangesResponse {
}

message BroadcastRequest {
string client_key = 6;
string client_id = 1;
string document_key = 5;
string document_id = 2;
string topic = 3;
bytes payload = 4;
Expand Down
7 changes: 0 additions & 7 deletions yorkie/src/main/kotlin/dev/yorkie/core/Client.kt
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ public class Client @VisibleForTesting internal constructor(
changePack = document.createChangePack().toPBChangePack()
documentId = documentID
pushOnly = syncMode == SyncMode.PushOnly
clientKey = options.key
}
val response = service.pushPullChanges(
request,
Expand Down Expand Up @@ -265,8 +264,6 @@ public class Client @VisibleForTesting internal constructor(
watchDocumentRequest {
clientId = requireClientId().value
documentId = attachment.documentID
clientKey = options.key
documentKey = attachment.document.key.value
},
documentBasedRequestHeader(attachment.document.key),
).retry {
Expand Down Expand Up @@ -360,7 +357,6 @@ public class Client @VisibleForTesting internal constructor(
val request = attachDocumentRequest {
clientId = requireClientId().value
changePack = document.createChangePack().toPBChangePack()
clientKey = options.key
}
val response = try {
service.attachDocument(
Expand Down Expand Up @@ -413,7 +409,6 @@ public class Client @VisibleForTesting internal constructor(
clientId = requireClientId().value
changePack = document.createChangePack().toPBChangePack()
documentId = attachment.documentID
clientKey = options.key
}
val response = try {
service.detachDocument(
Expand Down Expand Up @@ -449,7 +444,6 @@ public class Client @VisibleForTesting internal constructor(
service.deactivateClient(
deactivateClientRequest {
clientId = requireClientId().value
clientKey = options.key
},
projectBasedRequestHeader,
)
Expand Down Expand Up @@ -477,7 +471,6 @@ public class Client @VisibleForTesting internal constructor(
clientId = requireClientId().value
changePack = document.createChangePack(forceRemove = true).toPBChangePack()
documentId = attachment.documentID
clientKey = options.key
}
val response = try {
service.removeDocument(
Expand Down

0 comments on commit 767c3b4

Please sign in to comment.