Skip to content

Commit

Permalink
Update inevents
Browse files Browse the repository at this point in the history
  • Loading branch information
Sliman4 committed Jun 26, 2024
1 parent 3bbfd90 commit 1972c98
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/redis_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ pub struct PushToRedisStream {
impl PushToRedisStream {
pub async fn new(connection: ConnectionManager, max_stream_size: usize) -> Self {
Self {
mint_stream: RedisEventStream::new(connection.clone(), "nft_mint").await,
transfer_stream: RedisEventStream::new(connection.clone(), "nft_transfer").await,
burn_stream: RedisEventStream::new(connection.clone(), "nft_burn").await,
mint_stream: RedisEventStream::new(connection.clone(), "nft_mint"),
transfer_stream: RedisEventStream::new(connection.clone(), "nft_transfer"),
burn_stream: RedisEventStream::new(connection.clone(), "nft_burn"),
max_stream_size,
}
}
Expand All @@ -46,7 +46,6 @@ impl NftEventHandler for PushToRedisStream {
},
self.max_stream_size,
)
.await
.expect("Failed to emit mint event");
}

Expand All @@ -68,7 +67,6 @@ impl NftEventHandler for PushToRedisStream {
},
self.max_stream_size,
)
.await
.expect("Failed to emit transfer event");
}

Expand All @@ -88,7 +86,6 @@ impl NftEventHandler for PushToRedisStream {
},
self.max_stream_size,
)
.await
.expect("Failed to emit burn event");
}
}

0 comments on commit 1972c98

Please sign in to comment.