mirror of
https://github.com/cerc-io/watcher-ts
synced 2024-11-20 04:46:20 +00:00
nikugogoi
f56f7a823f
* Avoid database query by passing event directly to job-queue * Avoid block progress query by returning from update query * Process batch of events for a block in a single job * Fix smoke test for subscribed events and use teamSize for job queue
32 lines
724 B
TOML
32 lines
724 B
TOML
[server]
|
|
host = "127.0.0.1"
|
|
port = 3003
|
|
|
|
[database]
|
|
type = "postgres"
|
|
host = "localhost"
|
|
port = 5432
|
|
database = "uni-watcher"
|
|
username = "postgres"
|
|
password = "postgres"
|
|
synchronize = true
|
|
logging = false
|
|
|
|
[upstream]
|
|
[upstream.ethServer]
|
|
gqlApiEndpoint = "http://127.0.0.1:8082/graphql"
|
|
gqlPostgraphileEndpoint = "http://127.0.0.1:5000/graphql"
|
|
rpcProviderEndpoint = "http://127.0.0.1:8081"
|
|
blockDelayInMilliSecs = 2000
|
|
|
|
[upstream.cache]
|
|
name = "requests"
|
|
enabled = false
|
|
deleteOnStart = false
|
|
|
|
[jobQueue]
|
|
dbConnectionString = "postgres://postgres:postgres@localhost/uni-watcher-job-queue"
|
|
maxCompletionLagInSecs = 300
|
|
jobDelayInMilliSecs = 100
|
|
eventsInBatch = 50
|