Refactoring.

This commit is contained in:
Сергей Петров 2025-03-27 12:06:22 +05:00
parent 9e479de04c
commit 794ddc7927
2 changed files with 4 additions and 4 deletions

View File

@ -33,8 +33,8 @@ func StartWriter() {
} }
for _, link := range cams { for _, link := range cams {
logger.Log.Info("process camera:", zap.String("link", link)) logger.Log.Info("start process camera:", zap.String("link", link))
log.Println("process camera: ", link) log.Println("start process camera: ", link)
go func() { go func() {
err = rtsp(config.Local, 60, link, -1) err = rtsp(config.Local, 60, link, -1)

View File

@ -30,8 +30,8 @@ func ReadDir(dirData string) ([]os.DirEntry, error) {
} }
// Exists check if the file or directory exists. // Exists check if the file or directory exists.
func Exists(path string) bool { func Exists(file string) bool {
_, err := os.Stat(path) _, err := os.Stat(file)
if err == nil { if err == nil {
return true return true
} }