Skip to content

Commit 4448df3

Browse files
authored
fix: handle cancel from grpc (#110)
1 parent 8999293 commit 4448df3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

client/src/main/kotlin/io/hstream/impl/ConsumerKtImpl.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ class ConsumerKtImpl(
6262
if (status.code == Status.UNAVAILABLE.code) {
6363
delay(DefaultSettings.REQUEST_RETRY_INTERVAL_SECONDS * 1000)
6464
streamingFetchWithRetry(requestFlow)
65+
} else if (status.code == Status.CANCELLED.code) {
66+
logger.info("grpc streamingFetch is canceled")
6567
} else {
6668
logger.error("streamingFetch failed")
6769
notifyFailed(HStreamDBClientException(e))

0 commit comments

Comments
 (0)