Skip to content

Commit

Permalink
Correcting the Typo in entrypoint2 (#3339)
Browse files Browse the repository at this point in the history
There’s a small typo in `entrypoint2`: replace
`Ok(self.view1.get(&key).await?)` with `Ok(self.view2.get(&key).await?)`
because `view2` is the MapView that requires a key.

Signed-off-by: bigbear <155267841+aso20455@users.noreply.github.com>
  • Loading branch information
aso20455 authored Feb 15, 2025
1 parent 0d41aa8 commit 2b6a445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linera-indexer/plugins/src/template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl Template<C> {
}

pub async fn entrypoint2(&self, key: u32) -> Result<String, IndexerError> {
Ok(self.view1.get(&key).await?)
Ok(self.view2.get(&key).await?)
}

// Other functions are derived to fill the `linera_indexer::plugin::Plugin` trait.
Expand Down

5 comments on commit 2b6a445

@almpy

This comment was marked as spam.

@jhonataneth

This comment was marked as spam.

@Lange7

This comment was marked as spam.

@GrahamIo

This comment was marked as spam.

@Rajib85

This comment was marked as spam.

Please sign in to comment.