From 26f354d82d728cdf52cfc5b3e0581efe72f2efe4 Mon Sep 17 00:00:00 2001 From: Alexander Lazarenko Date: Fri, 16 May 2025 17:43:51 +0300 Subject: [PATCH] Remove unused counter logic in live source callback The incrementing counter and related condition were unnecessary and have been removed. This simplifies the callback function and improves code clarity without altering functionality. --- cmd/dev-client/main.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/cmd/dev-client/main.go b/cmd/dev-client/main.go index f61e45e..353387f 100644 --- a/cmd/dev-client/main.go +++ b/cmd/dev-client/main.go @@ -116,16 +116,8 @@ func handleLogin(sPack *smart.SmartPackage, pack protocol.Package) (err error) { go videoPack.Run() - i := 0 - videoPack.AddLiveSource(2, func(data []byte) error { fmt.Println("Есть контакт!") - - i++ - - if i > 10 { - return errors.New("я устал") - } return nil })