Skip to content

Commit f4405e2

Browse files
committed
remove google.api.http from implement-a-customized-actuator
1 parent 6df6132 commit f4405e2

2 files changed

Lines changed: 0 additions & 16 deletions

File tree

docs/implement-a-customized-actuator-en.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ The logic for `SumContract` is the summation of two numerical values:
1919
syntax = "proto3";
2020
package protocol;
2121
option java_package = "org.tron.protos.contract"; //Specify the name of the package that generated the Java file
22-
option go_package = "github.com/tronprotocol/grpc-gateway/core";
2322
message SumContract {
2423
int64 param1 = 1;
2524
int64 param2 = 2;
@@ -53,13 +52,6 @@ Then add an `InvokeSum` interface in the Wallet service:
5352
```protobuf
5453
service Wallet {
5554
rpc InvokeSum (SumContract) returns (Transaction) {
56-
option (google.api.http) = {
57-
post: "/wallet/invokesum"
58-
body: "*"
59-
additional_bindings {
60-
get: "/wallet/invokesum"
61-
}
62-
};
6355
};
6456
...
6557
};

docs/implement-a-customized-actuator-zh.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ Actuator 模块抽象出4个方法并定义在 `Actuator` 接口中:
2121
syntax = "proto3";
2222
package protocol;
2323
option java_package = "org.tron.protos.contract"; //Specify the name of the package that generated the Java file
24-
option go_package = "github.com/tronprotocol/grpc-gateway/core";
2524
message SumContract {
2625
int64 param1 = 1;
2726
int64 param2 = 2;
@@ -55,13 +54,6 @@ import "core/contract/math_contract.proto";
5554
```protobuf
5655
service Wallet {
5756
rpc InvokeSum (SumContract) returns (Transaction) {
58-
option (google.api.http) = {
59-
post: "/wallet/invokesum"
60-
body: "*"
61-
additional_bindings {
62-
get: "/wallet/invokesum"
63-
}
64-
};
6557
};
6658
...
6759
};

0 commit comments

Comments
 (0)