fix: ignore sleep
This commit is contained in:
@@ -7,7 +7,6 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"time"
|
|
||||||
|
|
||||||
"exporter/config"
|
"exporter/config"
|
||||||
"exporter/database/telegram_resource/public/model"
|
"exporter/database/telegram_resource/public/model"
|
||||||
@@ -29,7 +28,6 @@ func PublishCmd() *cobra.Command {
|
|||||||
log.Println("ERROR: ", err)
|
log.Println("ERROR: ", err)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
time.Sleep(time.Second)
|
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
@@ -76,7 +74,6 @@ func publishCmd(ctx context.Context) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Println("published: ", msg.ChannelMessages.ID)
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user