Configurable pooling interval

main
Michał Rudowicz 2024-03-06 07:52:28 +01:00
rodzic 053187c5d1
commit 8979c2dd1e
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -21,6 +21,7 @@ type Event struct {
type Config struct {
EventsQueueSize int
LongCommands bool
PoolingInterval time.Duration
}
type Satel struct {
@ -65,7 +66,7 @@ func NewConfig(conn net.Conn, config Config) *Satel {
}
s.readRawEvents()
}
time.Sleep(5 * time.Second)
time.Sleep(config.PoolingInterval)
}
}()
go func() {