Skip to content

Commit

Permalink
Merge pull request #124 from kinode-dao/hf/get-blob-to-last-blob
Browse files Browse the repository at this point in the history
http-server: use last_blob in request handler
  • Loading branch information
nick1udwig authored Dec 17, 2024
2 parents 0877f85 + db0336f commit eb708ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/http/server.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::vfs::{FileType, VfsAction, VfsRequest, VfsResponse};
use crate::{
get_blob, Address, LazyLoadBlob as KiBlob, Message, Request as KiRequest,
get_blob, last_blob, Address, LazyLoadBlob as KiBlob, Message, Request as KiRequest,
Response as KiResponse,
};
pub use http::StatusCode;
Expand Down Expand Up @@ -1000,7 +1000,7 @@ impl HttpServer {
HttpServerRequest::WebSocketPush {
channel_id,
message_type,
} => ws_handler(channel_id, message_type, get_blob().unwrap_or_default()),
} => ws_handler(channel_id, message_type, last_blob().unwrap_or_default()),
HttpServerRequest::WebSocketOpen { path, channel_id } => {
self.handle_websocket_open(&path, channel_id);
}
Expand Down

0 comments on commit eb708ce

Please sign in to comment.