From f849bbcef0f2c2406a6d2ec593539a1243497f8c Mon Sep 17 00:00:00 2001 From: Rogee Date: Thu, 5 Sep 2024 16:34:59 +0800 Subject: [PATCH] fix: ignore sleep --- internal/cmd_publish.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/cmd_publish.go b/internal/cmd_publish.go index f1e20f6..a908b8d 100644 --- a/internal/cmd_publish.go +++ b/internal/cmd_publish.go @@ -7,7 +7,6 @@ import ( "log" "os" "path/filepath" - "time" "exporter/config" "exporter/database/telegram_resource/public/model" @@ -29,7 +28,6 @@ func PublishCmd() *cobra.Command { log.Println("ERROR: ", err) return err } - time.Sleep(time.Second) } return nil }, @@ -76,7 +74,6 @@ func publishCmd(ctx context.Context) error { return err } - log.Println("published: ", msg.ChannelMessages.ID) return nil }