Skip to content

Commit da4efa0

Browse files
authored
[BREAKING] [proto] Use google/protobuf/empty.proto (#131)
#### Type of change - Improvement (improvement to code, performance, etc) - Breaking change #### Description - Use `google/protobuf/empty.proto` #### Related issues - resolves #130 Signed-off-by: Liran Funaro <[email protected]>
1 parent 53c5e1e commit da4efa0

File tree

18 files changed

+448
-637
lines changed

18 files changed

+448
-637
lines changed

api/protocoordinatorservice/coordinator.pb.go

Lines changed: 92 additions & 142 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/protocoordinatorservice/coordinator.proto

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ option go_package = "github.com/hyperledger/fabric-x-committer/api/protocoordina
1111
package protocoordinatorservice;
1212

1313
import "api/protoblocktx/block_tx.proto";
14+
import "google/protobuf/empty.proto";
1415

1516
service Coordinator {
1617
rpc BlockProcessing(stream Batch) returns (stream protoblocktx.TransactionsStatus);
17-
rpc SetLastCommittedBlockNumber (protoblocktx.BlockInfo) returns (Empty) {};
18-
rpc GetLastCommittedBlockNumber (Empty) returns (protoblocktx.LastCommittedBlock) {};
19-
rpc GetNextExpectedBlockNumber (Empty) returns (protoblocktx.BlockInfo) {};
18+
rpc SetLastCommittedBlockNumber (protoblocktx.BlockInfo) returns (google.protobuf.Empty) {};
19+
rpc GetLastCommittedBlockNumber (google.protobuf.Empty) returns (protoblocktx.LastCommittedBlock) {};
20+
rpc GetNextExpectedBlockNumber (google.protobuf.Empty) returns (protoblocktx.BlockInfo) {};
2021
rpc GetTransactionsStatus(protoblocktx.QueryStatus) returns (protoblocktx.TransactionsStatus);
21-
rpc GetConfigTransaction(Empty) returns (protoblocktx.ConfigTransaction) {};
22-
rpc NumberOfWaitingTransactionsForStatus(Empty) returns (WaitingTransactions);
22+
rpc GetConfigTransaction(google.protobuf.Empty) returns (protoblocktx.ConfigTransaction) {};
23+
rpc NumberOfWaitingTransactionsForStatus(google.protobuf.Empty) returns (WaitingTransactions);
2324
}
2425

2526
// A committer's representation of a block in the blockchain.
@@ -49,6 +50,3 @@ message TxRef {
4950
message WaitingTransactions {
5051
int32 count = 1;
5152
}
52-
53-
message Empty {
54-
}

api/protocoordinatorservice/coordinator_grpc.pb.go

Lines changed: 30 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)