mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 03:47:02 +02:00
async_traits is not needed anymore
This commit is contained in:
parent
9abd2aa9d7
commit
bba64b32ca
1 changed files with 0 additions and 3 deletions
|
@ -344,7 +344,6 @@ mod segment {
|
|||
}
|
||||
}
|
||||
|
||||
#[async_trait::async_trait]
|
||||
impl super::Analytics for SegmentAnalytics {
|
||||
fn publish(&'static self, event_name: String, send: Value, request: Option<&HttpRequest>) {
|
||||
let content_type = request
|
||||
|
@ -564,7 +563,6 @@ impl MockAnalytics {
|
|||
}
|
||||
}
|
||||
|
||||
#[async_trait::async_trait]
|
||||
impl Analytics for MockAnalytics {
|
||||
// These methods are noop and should be optimized out
|
||||
fn publish(&'static self, _event_name: String, _send: Value, _request: Option<&HttpRequest>) {}
|
||||
|
@ -594,7 +592,6 @@ impl Display for MockAnalytics {
|
|||
}
|
||||
}
|
||||
|
||||
#[async_trait::async_trait]
|
||||
pub trait Analytics: Display + Sync + Send {
|
||||
/// The method used to publish most analytics that do not need to be batched every hours
|
||||
fn publish(&'static self, event_name: String, send: Value, request: Option<&HttpRequest>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue