Skip to content

Commit

Permalink
feat: add ds_threads config param
Browse files Browse the repository at this point in the history
  • Loading branch information
mitch-lbw committed Mar 21, 2024
1 parent 4646d5a commit 4628b20
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .env_template
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ EOSIO_NODE_API=
# node shipreader endpoint (ws(s)://...)
# block to start initially from
EOSIO_START_BLOCK=
# number of threads
EOSIO_DS_THREADS=4

# unique client_id for interacting with Kafka
KAFKA_CLIENT_ID=
Expand Down
1 change: 1 addition & 0 deletions src/common/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const EOSIO_CONFIG = {
start_block: Number(process.env.EOSIO_START_BLOCK),
eosio_node_api: process.env.EOSIO_NODE_API,
eosio_ship_api: process.env.EOSIO_SHIP_API,
ds_threads: Number(process.env.EOSIO_DS_THREADS || 4),
};

export const KAFKA_CONFIG: KafkaConfig = {
Expand Down
2 changes: 1 addition & 1 deletion src/eosio/ship-reader-wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export class ShipReaderWrapper {
const eosioReaderConfig: EosioReaderConfig = {
ws_url: EOSIO_CONFIG.eosio_ship_api,
rpc_url: EOSIO_CONFIG.eosio_node_api,
ds_threads: 6,
ds_threads: EOSIO_CONFIG.ds_threads,
ds_experimental: false,
delta_whitelist: delta_whitelist,
table_rows_whitelist: this.config.table_rows_whitelist,
Expand Down

0 comments on commit 4628b20

Please sign in to comment.