Skip to content
Snippets Groups Projects
Verified Commit e6d004e9 authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Less logging

parent 05c8b2dc
Branches
No related tags found
No related merge requests found
Pipeline #7010 passed
openapi: 3.0.3 openapi: 3.0.3
info: info:
version: "3.0.0" version: "3.0.1"
title: CF Online title: CF Online
description: CF Online description: CF Online
license: license:
......
...@@ -74,13 +74,11 @@ func main() { ...@@ -74,13 +74,11 @@ func main() {
for event, count := range online { for event, count := range online {
elapsed := now.Sub(lastPub[event]).Round(time.Second).Seconds() elapsed := now.Sub(lastPub[event]).Round(time.Second).Seconds()
if elapsed < float64(count.All)/tarpitFactor { if elapsed < float64(count.All)/tarpitFactor {
break break
} }
fmt.Println(elapsed)
// tady muze byt next
lastPub[event] = now lastPub[event] = now
topic := fmt.Sprintf("online:%s", event) topic := fmt.Sprintf("online:%s", event)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment