Skip to content

Commit

Permalink
Update main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
RealHinome authored Mar 10, 2024
1 parent 7eb2329 commit 33d407d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions squid/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ impl Squid for SuperSquid {
self.algorithm.clone(),
request.into_inner().length as usize,
)
.map_err(|error| {
log::error!("Failed to rank most used words: {}", error);
Status::invalid_argument("failed to rank")
})?
.iter()
.map(|(word, occurence)| Word {
word: word.to_string(),
Expand All @@ -43,7 +39,7 @@ impl Squid for SuperSquid {
.collect::<Vec<_>>(),
}))
}

async fn add(
&self,
_request: Request<AddRequest>,
Expand Down

0 comments on commit 33d407d

Please sign in to comment.