Skip to content

Commit

Permalink
Fix API's method name
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryAstafyev committed Jul 28, 2023
1 parent 870386b commit a2413b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion application/apps/indexer/session/src/handlers/observe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub async fn start_observing(
ObserveOrigin::File(uuid, file_origin, filename) => {
let (is_text, session_file_origin) = (
matches!(options.parser, ParserType::Text),
state.get_session_file_stage().await?,
state.get_session_file_origin().await?,
);
match session_file_origin {
Some(origin) if origin.is_linked() => Err(NativeError {
Expand Down
2 changes: 1 addition & 1 deletion application/apps/indexer/session/src/state/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ impl SessionStateAPI {
self.exec_operation(Api::FlushSessionFile(tx), rx).await?
}

pub async fn get_session_file_stage(&self) -> Result<Option<SessionFileOrigin>, NativeError> {
pub async fn get_session_file_origin(&self) -> Result<Option<SessionFileOrigin>, NativeError> {
let (tx, rx) = oneshot::channel();
self.exec_operation(Api::GetSessionFileOrigin(tx), rx)
.await?
Expand Down

0 comments on commit a2413b8

Please sign in to comment.