mirror of
https://github.com/aykhans/bsky-feedgen.git
synced 2026-11-11 19:01:09 +00:00
Remove flushing log from consumer
This commit is contained in:
1 parent
58dce559d3
commit
4d5abe66a6
2 files changed
+75
-1
No files matched your search
@@ -264,7 +264,7 @@ func ConsumeAndSaveToMongoDB(
|
||||
case <-ticker.C:
|
||||
if len(postBatch) > 0 {
|
||||
consumerLastFlushingTime = time.Now()
|
||||
logger.Log.Info("flushing post batch", "count", len(postBatch))
|
||||
// logger.Log.Info("flushing post batch", "count", len(postBatch))
|
||||
err := postCollection.Insert(ctx, true, postBatch...)
|
||||
if err != nil {
|
||||
return fmt.Errorf("mongodb post insert error: %v", err)
|
||||
|
||||
Reference in new issue
Block a user