Skip to content

Commit

Permalink
cleanup fixme
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys committed Mar 6, 2025
1 parent ff27f6c commit a2a1f0a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions crates/tabby-index/src/structured_doc/types/commit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,10 @@ impl BuildStructuredDoc for CommitDocument {
embedding: Arc<dyn Embedding>,
) -> BoxStream<JoinHandle<Result<(Vec<String>, serde_json::Value)>>> {
let s = stream! {
// FIXME(meng): improve commit message indexing format.
let rewritten_body = format!(r#"Commit Message:
```
{}
```
"#, self.message);
let embedding = embedding.clone();
let body = self.message.clone();

Check warning on line 44 in crates/tabby-index/src/structured_doc/types/commit.rs

View check run for this annotation

Codecov / codecov/patch

crates/tabby-index/src/structured_doc/types/commit.rs#L44

Added line #L44 was not covered by tests
yield tokio::spawn(async move {
match build_tokens(embedding.clone(), &rewritten_body).await {
match build_tokens(embedding.clone(), &body).await {
Ok(tokens) => Ok((tokens, json!({}))),

Check warning on line 47 in crates/tabby-index/src/structured_doc/types/commit.rs

View check run for this annotation

Codecov / codecov/patch

crates/tabby-index/src/structured_doc/types/commit.rs#L46-L47

Added lines #L46 - L47 were not covered by tests
Err(err) => Err(err),
}
Expand Down

0 comments on commit a2a1f0a

Please sign in to comment.