Skip to content

Commit

Permalink
fix usage example
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenghaoz authored Nov 24, 2022
1 parent bb44993 commit afe4262
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ let feedback = vec![
Feedback::new("star", "bob", "mozilla:pdf.js", "2022-02-27"),
Feedback::new("star", "bob", "moment:moment", "2022-02-28")
];
client.insert_feedback(&feedback);
client.insert_feedback(&feedback).await;

client.get_recommend("100");
client.get_recommend("100").await;
```

- Use blocking client:
Expand All @@ -48,7 +48,7 @@ let feedback = vec![
Feedback::new("star", "bob", "mozilla:pdf.js", "2022-02-27"),
Feedback::new("star", "bob", "moment:moment", "2022-02-28")
];
client.insert_feedback(&feedback).await;
client.insert_feedback(&feedback);

client.get_recommend("100").await;
client.get_recommend("100");
```

0 comments on commit afe4262

Please sign in to comment.