Skip to content

Commit

Permalink
fix typo and find_next
Browse files Browse the repository at this point in the history
  • Loading branch information
photovoltex committed Dec 15, 2024
1 parent 0752b8d commit 08624dd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion connect/src/context_resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ impl ContextResolver {
fn find_next(&self) -> Option<(&ResolveContext, &str, usize)> {
let mut idx = 0;
loop {
let next = self.queue.front()?;
let next = self.queue.get(idx)?;
match next.resolve_uri() {
None if idx < self.queue.len() => {
warn!("skipped {idx} because of no valid resolve_uri: {next}");
Expand Down
2 changes: 1 addition & 1 deletion connect/src/state/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ fn page_url_to_uri(page_url: &str) -> String {
let split = if let Some(rest) = page_url.strip_prefix("hm://") {
rest.split('/')
} else {
warn!("page_url didn't started with hm://. got page_url: {page_url}");
warn!("page_url didn't start with hm://. got page_url: {page_url}");
page_url.split('/')
};

Expand Down
4 changes: 2 additions & 2 deletions core/src/dealer/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ fn handle_transfer_encoding(
) -> Result<Vec<u8>, Error> {
let encoding = headers.get("Transfer-Encoding").map(String::as_str);
if let Some(encoding) = encoding {
trace!("message was send with {encoding} encoding ");
trace!("message was sent with {encoding} encoding ");
} else {
trace!("message was send with no encoding ");
trace!("message was sent with no encoding ");
}

if !matches!(encoding, Some("gzip")) {
Expand Down

0 comments on commit 08624dd

Please sign in to comment.