mirror of
https://github.com/serai-dex/serai.git
synced 2025-03-24 08:08:51 +00:00
Tweak processor's slice handling due to a CI failure
The prior code worked without issue for me locally, but apparently it didn't always.
This commit is contained in:
parent
61757d5e19
commit
a290b74805
2 changed files with 2 additions and 2 deletions
|
@ -85,7 +85,7 @@ impl<C: Coin, D: Db> ScannerDb<C, D> {
|
||||||
// Don't add this key if it's already present
|
// Don't add this key if it's already present
|
||||||
let mut i = 0;
|
let mut i = 0;
|
||||||
while i < keys.len() {
|
while i < keys.len() {
|
||||||
if keys[i .. (i + key_len)].as_ref() == key_bytes.as_ref() {
|
if &keys[i .. (i + key_len)] == key_bytes.as_ref() {
|
||||||
debug!("adding {} as an active key yet it was already present", hex::encode(key_bytes));
|
debug!("adding {} as an active key yet it was already present", hex::encode(key_bytes));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,7 +61,7 @@ impl<C: Coin, D: Db> SignerDb<C, D> {
|
||||||
|
|
||||||
let mut i = 0;
|
let mut i = 0;
|
||||||
while i < existing.len() {
|
while i < existing.len() {
|
||||||
if existing[i .. (i + tx_len)].as_ref() == tx.as_ref() {
|
if &existing[i .. (i + tx_len)] == tx.as_ref() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
i += tx_len;
|
i += tx_len;
|
||||||
|
|
Loading…
Reference in a new issue