Skip to content

Commit

Permalink
[indexer grpc] add send_timeout and transaction count for grpc. (#8169)
Browse files Browse the repository at this point in the history
  • Loading branch information
larry-aptos authored May 17, 2023
1 parent d0f1d85 commit e6a6d2e
Show file tree
Hide file tree
Showing 6 changed files with 161 additions and 113 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion crates/aptos-protos/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aptos-protos"
version = "0.2.0"
version = "0.2.1"
authors = ["Aptos Labs <[email protected]>"]
description = "Aptos Protobuf Definitions"
repository = "https://github.com/aptos-labs/aptos-core"
Expand Down
4 changes: 4 additions & 0 deletions crates/aptos-protos/proto/aptos/indexer/v1/raw_data.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ message GetTransactionsRequest {
// Optional; number of transactions to return in current stream.
// If not present, return an infinite stream of transactions.
optional uint64 transactions_count = 2 [jstype = JS_STRING];

// Optional; number of transactions in each `TransactionsResponse` for current stream.
// If not present, default to 1000. If larger than 1000, request will be rejected.
optional uint64 batch_size = 3;
}

// TransactionsResponse is a batch of transactions.
Expand Down
Loading

0 comments on commit e6a6d2e

Please sign in to comment.