fix: ignore sleep
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user