1
0
Fork 0
mirror of https://github.com/diamondburned/cchat-gtk.git synced 2025-01-03 09:36:50 +00:00

more lax GC duration

This commit is contained in:
diamondburned 2020-12-29 22:31:16 -08:00
parent 50376cb2b0
commit ca935db1b8

View file

@ -20,7 +20,7 @@ import (
func init() {
go func() {
// If you GC more, you have shorter STWs. Easy.
for range time.Tick(time.Second) {
for range time.Tick(10 * time.Second) {
runtime.GC()
}
}()