He-Pin commented on code in PR #199:
URL: 
https://github.com/apache/pekko-persistence-jdbc/pull/199#discussion_r1616964608


##########
core/src/main/scala/org/apache/pekko/persistence/jdbc/query/scaladsl/JdbcReadJournal.scala:
##########
@@ -119,7 +117,8 @@ class JdbcReadJournal(config: Config, configPath: 
String)(implicit val system: E
   override def persistenceIds(): Source[String, NotUsed] =
     Source
       .repeat(0)
-      .flatMapConcat(_ => delaySource.flatMapConcat(_ => 
currentPersistenceIds()))
+      .throttle(1, readJournalConfig.refreshInterval)
+      .flatMapConcat(_ => currentPersistenceIds())

Review Comment:
   the default behavior is fail the stream, need change the throttle mode.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org
For additional commands, e-mail: notifications-h...@pekko.apache.org

Reply via email to