feat: query many identity balances at a time #3599
Annotations
12 warnings
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
The following actions use a deprecated Node.js version and will be forced to run on node20: mozilla-actions/[email protected], strophy/actions-cache@opendal-update. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
packages/rs-platform-serialization-derive/src/attribute.rs#L8
warning: field `unversioned` is never read
--> packages/rs-platform-serialization-derive/src/attribute.rs:8:9
|
5 | pub struct ContainerAttributes {
| ------------------- field in this struct
...
8 | pub unversioned: bool,
| ^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
packages/rs-platform-serialization-derive/src/attribute.rs#L114
warning: field `platform_version_path_bounds` is never read
--> packages/rs-platform-serialization-derive/src/attribute.rs:114:9
|
111 | pub struct FieldAttributes {
| --------------- field in this struct
...
114 | pub platform_version_path_bounds: String,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
packages/rs-drive/src/drive/contract/test_helpers.rs#L6
warning: unexpected `cfg` condition value: `data-contract-cbor-conversion`
--> packages/rs-drive/src/drive/contract/test_helpers.rs:6:7
|
6 | #[cfg(feature = "data-contract-cbor-conversion")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `arc-swap`, `base64`, `bs58`, `cbor_query`, `chrono`, `ciborium`, `default`, `dpp`, `enum-map`, `fee-distribution`, `fixtures-and-mocks`, `full`, `grovedb`, `grovedb-costs`, `grovedb-storage`, `grovedb_operations_logging`, `grovedbg`, `intmap`, `itertools`, `moka`, `parking_lot`, `rand`, `serde`, `server`, `tempfile`, and `verify`
= help: consider adding `data-contract-cbor-conversion` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: `#[warn(unexpected_cfgs)]` on by default
|
packages/rs-drive/src/drive/document/insert/mod.rs#L40
warning: unexpected `cfg` condition value: `data-contract-cbor-conversion`
--> packages/rs-drive/src/drive/document/insert/mod.rs:40:5
|
40 | feature = "data-contract-cbor-conversion"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `arc-swap`, `base64`, `bs58`, `cbor_query`, `chrono`, `ciborium`, `default`, `dpp`, `enum-map`, `fee-distribution`, `fixtures-and-mocks`, `full`, `grovedb`, `grovedb-costs`, `grovedb-storage`, `grovedb_operations_logging`, `grovedbg`, `intmap`, `itertools`, `moka`, `parking_lot`, `rand`, `serde`, `server`, `tempfile`, and `verify`
= help: consider adding `data-contract-cbor-conversion` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
packages/rs-drive/src/drive/document/insert_contested/mod.rs#L41
warning: unexpected `cfg` condition value: `data-contract-cbor-conversion`
--> packages/rs-drive/src/drive/document/insert_contested/mod.rs:41:5
|
41 | feature = "data-contract-cbor-conversion"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `arc-swap`, `base64`, `bs58`, `cbor_query`, `chrono`, `ciborium`, `default`, `dpp`, `enum-map`, `fee-distribution`, `fixtures-and-mocks`, `full`, `grovedb`, `grovedb-costs`, `grovedb-storage`, `grovedb_operations_logging`, `grovedbg`, `intmap`, `itertools`, `moka`, `parking_lot`, `rand`, `serde`, `server`, `tempfile`, and `verify`
= help: consider adding `data-contract-cbor-conversion` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
packages/rs-drive/src/drive/document/query/mod.rs#L37
warning: unexpected `cfg` condition value: `data-contract-cbor-conversion`
--> packages/rs-drive/src/drive/document/query/mod.rs:37:5
|
37 | feature = "data-contract-cbor-conversion"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `arc-swap`, `base64`, `bs58`, `cbor_query`, `chrono`, `ciborium`, `default`, `dpp`, `enum-map`, `fee-distribution`, `fixtures-and-mocks`, `full`, `grovedb`, `grovedb-costs`, `grovedb-storage`, `grovedb_operations_logging`, `grovedbg`, `intmap`, `itertools`, `moka`, `parking_lot`, `rand`, `serde`, `server`, `tempfile`, and `verify`
= help: consider adding `data-contract-cbor-conversion` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
packages/rs-drive/src/drive/document/query/mod.rs#L20
warning: duplicated attribute
--> packages/rs-drive/src/drive/document/query/mod.rs:20:7
|
20 | #[cfg(feature = "fixtures-and-mocks")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: first defined here
--> packages/rs-drive/src/drive/document/query/mod.rs:19:7
|
19 | #[cfg(feature = "fixtures-and-mocks")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: remove this attribute
--> packages/rs-drive/src/drive/document/query/mod.rs:20:7
|
20 | #[cfg(feature = "fixtures-and-mocks")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#duplicated_attributes
= note: `#[warn(clippy::duplicated_attributes)]` on by default
|
packages/rs-drive/src/drive/identity/fetch/queries/mod.rs#L169
warning: this `else { if .. }` block can be collapsed
--> packages/rs-drive/src/drive/identity/fetch/queries/mod.rs:169:16
|
169 | } else {
| ________________^
170 | | if let Some((start_at, start_at_included)) = start_at {
171 | | if start_at_included {
172 | | query.insert_item(QueryItem::RangeToInclusive(..=start_at.to_vec()))
... |
178 | | }
179 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_else_if
= note: `#[warn(clippy::collapsible_else_if)]` on by default
help: collapse nested if block
|
169 ~ } else if let Some((start_at, start_at_included)) = start_at {
170 + if start_at_included {
171 + query.insert_item(QueryItem::RangeToInclusive(..=start_at.to_vec()))
172 + } else {
173 + query.insert_item(QueryItem::RangeTo(..start_at.to_vec()))
174 + }
175 + } else {
176 + query.insert_item(QueryItem::RangeFull(RangeFull))
177 + }
|
|
packages/rs-drive/src/drive/identity/fetch/queries/mod.rs#L140
warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `slice`
--> packages/rs-drive/src/drive/identity/fetch/queries/mod.rs:140:40
|
140 | query.insert_keys(identity_ids.into_iter().map(|key| key.to_vec()).collect());
| ^^^^^^^^^ help: call directly: `iter`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref
= note: `#[warn(clippy::into_iter_on_ref)]` on by default
|
packages/rs-drive/src/verify/identity/verify_identity_balances_for_identity_ids/v0/mod.rs#L9
warning: unused import: `dpp::identifier::Identifier`
--> packages/rs-drive/src/verify/identity/verify_identity_balances_for_identity_ids/v0/mod.rs:9:5
|
9 | use dpp::identifier::Identifier;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
This job succeeded
Loading