Skip to content

Commit

Permalink
chore: new error code
Browse files Browse the repository at this point in the history
  • Loading branch information
appflowy committed Feb 25, 2025
1 parent 4bd5222 commit 2f90abc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions libs/client-api/src/http_chat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use shared_entity::response::{AppResponse, AppResponseError};
use std::pin::Pin;
use std::task::{Context, Poll};
use std::time::Duration;
use tracing::error;
use tracing::{error, info};

impl Client {
/// Create a new chat
Expand Down Expand Up @@ -450,7 +450,10 @@ impl Stream for QuestionStream {
error!("Error while streaming answer: {:?}", err);
Poll::Pending
},
None => Poll::Ready(None),
None => {
info!("Stream ended");
Poll::Ready(None)
},
}
}
}

0 comments on commit 2f90abc

Please sign in to comment.