mirror of
https://github.com/0xfnzero/solana-streamer.git
synced 2026-08-24 14:28:10 +00:00
feat: upgrade to v0.4.11
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "solana-streamer-sdk"
|
name = "solana-streamer-sdk"
|
||||||
version = "0.4.10"
|
version = "0.4.11"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["William <byteblock6@gmail.com>", "sgxiang <sgxiang@gmail.com>", "wei <1415121722@qq.com>"]
|
authors = ["William <byteblock6@gmail.com>", "sgxiang <sgxiang@gmail.com>", "wei <1415121722@qq.com>"]
|
||||||
repository = "https://github.com/0xfnzero/solana-streamer"
|
repository = "https://github.com/0xfnzero/solana-streamer"
|
||||||
|
|||||||
@@ -108,14 +108,14 @@ Add the dependency to your `Cargo.toml`:
|
|||||||
|
|
||||||
```toml
|
```toml
|
||||||
# Add to your Cargo.toml
|
# Add to your Cargo.toml
|
||||||
solana-streamer-sdk = { path = "./solana-streamer", version = "0.4.10" }
|
solana-streamer-sdk = { path = "./solana-streamer", version = "0.4.11" }
|
||||||
```
|
```
|
||||||
|
|
||||||
### Use crates.io
|
### Use crates.io
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
# Add to your Cargo.toml
|
# Add to your Cargo.toml
|
||||||
solana-streamer-sdk = "0.4.10"
|
solana-streamer-sdk = "0.4.11"
|
||||||
```
|
```
|
||||||
|
|
||||||
## ⚙️ Configuration System
|
## ⚙️ Configuration System
|
||||||
|
|||||||
+2
-2
@@ -107,14 +107,14 @@ git clone https://github.com/0xfnzero/solana-streamer
|
|||||||
|
|
||||||
```toml
|
```toml
|
||||||
# 添加到您的 Cargo.toml
|
# 添加到您的 Cargo.toml
|
||||||
solana-streamer-sdk = { path = "./solana-streamer", version = "0.4.10" }
|
solana-streamer-sdk = { path = "./solana-streamer", version = "0.4.11" }
|
||||||
```
|
```
|
||||||
|
|
||||||
### 使用 crates.io
|
### 使用 crates.io
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
# 添加到您的 Cargo.toml
|
# 添加到您的 Cargo.toml
|
||||||
solana-streamer-sdk = "0.4.10"
|
solana-streamer-sdk = "0.4.11"
|
||||||
```
|
```
|
||||||
|
|
||||||
## ⚙️ 配置系统
|
## ⚙️ 配置系统
|
||||||
|
|||||||
@@ -299,6 +299,9 @@ impl EventProcessor {
|
|||||||
let tx = transaction_with_slot.transaction;
|
let tx = transaction_with_slot.transaction;
|
||||||
|
|
||||||
let slot = transaction_with_slot.slot;
|
let slot = transaction_with_slot.slot;
|
||||||
|
if tx.signatures.is_empty() {
|
||||||
|
return Ok(());
|
||||||
|
}
|
||||||
let signature = tx.signatures[0];
|
let signature = tx.signatures[0];
|
||||||
let recv_us = transaction_with_slot.recv_us;
|
let recv_us = transaction_with_slot.recv_us;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user