Skip to content

Commit 228d0af

Browse files
committed
Using config file
1 parent 63f0b90 commit 228d0af

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

config/config.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,15 @@ key_store.pyth_price_store_program_key = "3m6sv6HGqEbuyLV84mD7rJn4MAC9LhUa1y1AUN
7373
# takes to fetch all symbols.
7474
# oracle.max_lookup_batch_size = 100
7575

76+
# Number of workers used to wait for the handle_price_account_update
77+
# oracle.handle_price_account_update_worker_poll_size = 25
78+
# Channel size used to wait for the handle_price_account_update
79+
# oracle.handle_price_account_update_channel_size = 1000
80+
# Minimum time for a subscriber to run
81+
# oracle.subscriber_finished_min_time = "30s"
82+
# Time to sleep if the subscriber do not run for more than the minimum time
83+
# oracle.subscriber_finished_sleep_time = "1s"
84+
7685
# How often to refresh the cached network state (current slot and blockhash).
7786
# It is recommended to set this to slightly less than the network's block time,
7887
# as the slot fetched will be used as the time of the price update.

src/agent/state/oracle.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ fn default_handle_price_account_update_channel_size() -> usize {
143143
}
144144

145145
fn default_handle_price_account_update_worker_poll_size() -> usize {
146-
50
146+
25
147147
}
148148

149149
fn default_subscriber_finished_min_time() -> Duration {

0 commit comments

Comments
 (0)