Skip to content

Commit bbf014e

Browse files
committed
chore: add docs for lazer config
1 parent c414a83 commit bbf014e

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

config/config.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,3 +218,24 @@ exporter_timeout_duration = "3s"
218218

219219
# Endpoint URL for the OpenTelemetry exporter
220220
exporter_endpoint = "http://127.0.0.1:4317"
221+
222+
## Configuration for Pyth Lazer ##
223+
224+
# [pyth_lazer]
225+
# URL for the history service
226+
# history_url = "https://pyth-lazer-staging.dourolabs.app/history/"
227+
228+
# URLs for the Lazer relayers to connect to
229+
# relayer_urls = ["wss://pyth-lazer-staging.dourolabs.app/v2/publisher"]
230+
231+
# Unique identifier for this publisher
232+
# publisher_id = 1
233+
234+
# Authorization token for connecting to relayers
235+
# authorization_token = "your-auth-token"
236+
237+
# Path to the publisher's secret key file
238+
# publisher_secret_key = "/path/to/publisher-key.json"
239+
240+
# Duration between price updates (defaults to 200ms if not specified)
241+
# publish_interval_duration = "200ms"

src/agent/services/lazer_exporter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ impl std::fmt::Debug for PublisherSecretKey {
6262
}
6363

6464
fn default_publish_interval() -> Duration {
65-
Duration::from_millis(10)
65+
Duration::from_millis(200)
6666
}
6767

6868
struct RelayerSender {

0 commit comments

Comments
 (0)