1
0
Fork 0

Configurable pooling interval

This commit is contained in:
Michał Rudowicz 2024-03-06 07:52:28 +01:00
parent 053187c5d1
commit 8979c2dd1e
1 changed files with 2 additions and 1 deletions

View File

@ -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() {