mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-11 11:08:11 -07:00
config.yaml: camelCase to snake_case
This commit is contained in:
+3
-3
@@ -35,9 +35,9 @@ type Config struct {
|
||||
// chihaya.
|
||||
type TrackerConfig struct {
|
||||
AnnounceInterval time.Duration `yaml:"announce"`
|
||||
MinAnnounceInterval time.Duration `yaml:"minAnnounce"`
|
||||
AnnounceMiddleware []string `yaml:"announceMiddleware"`
|
||||
ScrapeMiddleware []string `yaml:"scrapeMiddleware"`
|
||||
MinAnnounceInterval time.Duration `yaml:"min_announce"`
|
||||
AnnounceMiddleware []string `yaml:"announce_middleware"`
|
||||
ScrapeMiddleware []string `yaml:"scrape_middleware"`
|
||||
}
|
||||
|
||||
// ServerConfig represents the configuration of the servers started by chihaya.
|
||||
|
||||
+16
-16
@@ -4,35 +4,35 @@
|
||||
|
||||
tracker:
|
||||
announce: 10m
|
||||
minAnnounce: 5m
|
||||
announceMiddleware:
|
||||
min_announce: 5m
|
||||
announce_middleware:
|
||||
- prometheus
|
||||
- storeClientValidation
|
||||
- storeCreateOnAnnounce
|
||||
scrapeMiddleware:
|
||||
- store_client_validation
|
||||
- store_create_on_announce
|
||||
scrape_middleware:
|
||||
- prometheus
|
||||
- storeClientValidation
|
||||
- store_client_validation
|
||||
|
||||
servers:
|
||||
- name: store
|
||||
config:
|
||||
addr: localhost:6880
|
||||
requestTimeout: 10s
|
||||
readTimeout: 10s
|
||||
writeTimeout: 10s
|
||||
clientStore: memory
|
||||
ipStore: memory
|
||||
peerStore: memory
|
||||
peerStoreConfig:
|
||||
request_timeout: 10s
|
||||
read_timeout: 10s
|
||||
write_timeout: 10s
|
||||
client_store: memory
|
||||
ip_store: memory
|
||||
peer_store: memory
|
||||
peer_store_config:
|
||||
gcAfter: 30m
|
||||
shards: 1
|
||||
|
||||
- name: http
|
||||
config:
|
||||
addr: localhost:6881
|
||||
requestTimeout: 10s
|
||||
readTimeout: 10s
|
||||
writeTimeout: 10s
|
||||
request_timeout: 10s
|
||||
read_timeout: 10s
|
||||
write_timeout: 10s
|
||||
|
||||
- name: udp
|
||||
config:
|
||||
|
||||
Reference in New Issue
Block a user