1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-27 10:53:42 +02:00
This commit is contained in:
Henrik Hautakoski 2022-11-28 15:22:07 +01:00
parent e2c1922269
commit c8b4c208e6
7 changed files with 137 additions and 11 deletions

View file

@ -24,6 +24,7 @@ type Config struct {
Name string `json:"name"`
ShipApi string `json:"ship_api"`
Api string `json:"api"`
Transport string `json:"transport"`
Redis RedisConfig `json:"redis"`
@ -38,6 +39,7 @@ type Config struct {
func Load(filename string) (Config, error) {
cfg := Config{
Transport: "redis-channel",
StartBlockNum: NULL_BLOCK_NUMBER,
EndBlockNum: NULL_BLOCK_NUMBER,
MaxMessagesInFlight: 10,