1
0
mirror of https://github.com/ManyakRus/starter.git synced 2025-11-24 22:53:52 +02:00

сделал defer ticker.Stop()

This commit is contained in:
Nikitin Aleksandr
2025-04-02 14:07:34 +03:00
parent efd7b3809b
commit 2bbaed760a
7 changed files with 11 additions and 0 deletions

View File

@@ -346,6 +346,7 @@ func ping_go() {
var err error
ticker := time.NewTicker(60 * time.Second)
defer ticker.Stop()
//бесконечный цикл
loop: