diff --git a/satel.go b/satel.go index 52892ee..80794cc 100644 --- a/satel.go +++ b/satel.go @@ -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() {