cleanup net config

This commit is contained in:
Sergey Cherepanov 2023-06-07 20:52:09 +02:00
parent 065ff11983
commit 5a6661eab1
No known key found for this signature in database
GPG Key ID: 87F8EDE8FBDF637C

View File

@ -11,14 +11,9 @@ type ConfigGetter interface {
} }
type Config struct { type Config struct {
Server ServerConfig `yaml:"server"`
Stream StreamConfig `yaml:"stream"` Stream StreamConfig `yaml:"stream"`
} }
type ServerConfig struct {
ListenAddrs []string `yaml:"listenAddrs"`
}
type StreamConfig struct { type StreamConfig struct {
TimeoutMilliseconds int `yaml:"timeoutMilliseconds"` TimeoutMilliseconds int `yaml:"timeoutMilliseconds"`
MaxMsgSizeMb int `yaml:"maxMsgSizeMb"` MaxMsgSizeMb int `yaml:"maxMsgSizeMb"`