mirror of
https://github.com/status-im/whispervis.git
synced 2025-02-01 07:55:29 +00:00
Remove stale console logs from render throttler
This commit is contained in:
parent
9b72606c7d
commit
1ac4d92d6f
@ -1,7 +1,6 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
)
|
||||
|
||||
@ -32,14 +31,12 @@ func NewRenderThrottler() *RenderThrottler {
|
||||
|
||||
// Disable disables render throttling.
|
||||
func (r *RenderThrottler) Disable() {
|
||||
fmt.Printf("Switching ON rendering")
|
||||
r.needRendering = true
|
||||
r.lastUpdate = time.Now().Unix()
|
||||
}
|
||||
|
||||
// Enable enables render throttling.
|
||||
func (r *RenderThrottler) Enable() {
|
||||
fmt.Printf("Switching off rendering")
|
||||
r.needRendering = false
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user