fix: ignore sleep

This commit is contained in:
Rogee
2024-09-05 16:34:59 +08:00
parent ade4a0ef7f
commit f849bbcef0

View File

@@ -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
}