Skip to content

Commit

Permalink
build(deps): bump strum_macros from 0.21.1 to 0.25.2 (#4795)
Browse files Browse the repository at this point in the history
* build(deps): bump strum_macros from 0.21.1 to 0.25.2

Bumps [strum_macros](https://github.com/Peternator7/strum) from 0.21.1 to 0.25.2.
- [Changelog](https://github.com/Peternator7/strum/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Peternator7/strum/commits)

---
updated-dependencies:
- dependency-name: strum_macros
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix api changes

* bump max connections

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Filipe Azevedo <filipe@azevedo.io>
  • Loading branch information
dependabot[bot] and mangas committed Aug 17, 2023
1 parent b513200 commit c1d542e
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 38 deletions.
34 changes: 10 additions & 24 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ services:
command:
[
"postgres",
"-cshared_preload_libraries=pg_stat_statements"
"-cshared_preload_libraries=pg_stat_statements",
"-cmax_connections=200"
]
environment:
POSTGRES_USER: graph-node
Expand Down
2 changes: 1 addition & 1 deletion graph/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ slog = { version = "2.7.0", features = ["release_max_level_trace", "max_level_tr
stable-hash_legacy = { version = "0.3.3", package = "stable-hash" }
stable-hash = { version = "0.4.2" }
strum = "0.21.0"
strum_macros = "0.21.1"
strum_macros = "0.25.2"
slog-async = "2.5.0"
slog-envlogger = "2.1.0"
slog-term = "2.7.0"
Expand Down
2 changes: 1 addition & 1 deletion graph/src/components/store/entity_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ impl EntityCache {
entity_field: field.name.clone().into(),
value: eref.entity_id.clone(),
causality_region: eref.causality_region,
id_is_bytes: id_is_bytes,
id_is_bytes,
};

let mut entity_map = self.store.get_derived(&query)?;
Expand Down
11 changes: 5 additions & 6 deletions graph/src/components/subgraph/proof_of_indexing/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ use crate::prelude::{impl_slog_value, Value};
use stable_hash_legacy::StableHasher;
use std::collections::{BTreeMap, HashMap};
use std::fmt;
use strum::AsStaticRef as _;
use strum_macros::AsStaticStr;
use strum_macros::IntoStaticStr;

#[derive(AsStaticStr)]
#[derive(IntoStaticStr)]
pub enum ProofOfIndexingEvent<'a> {
/// For when an entity is removed from the store.
RemoveEntity { entity_type: &'a str, id: &'a str },
Expand Down Expand Up @@ -64,8 +63,8 @@ impl stable_hash_legacy::StableHash for ProofOfIndexingEvent<'_> {
use stable_hash_legacy::prelude::*;
use ProofOfIndexingEvent::*;

self.as_static()
.stable_hash(sequence_number.next_child(), state);
let str: &'static str = self.into();
str.stable_hash(sequence_number.next_child(), state);
match self {
RemoveEntity { entity_type, id } => {
entity_type.stable_hash(sequence_number.next_child(), state);
Expand Down Expand Up @@ -123,7 +122,7 @@ impl stable_hash::StableHash for ProofOfIndexingEvent<'_> {
/// sorted.
impl fmt::Debug for ProofOfIndexingEvent<'_> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
let mut builder = f.debug_struct(self.as_static());
let mut builder = f.debug_struct(self.into());
match self {
Self::RemoveEntity { entity_type, id } => {
builder.field("entity_type", entity_type);
Expand Down
7 changes: 3 additions & 4 deletions graph/src/data/store/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ use std::convert::TryFrom;
use std::fmt;
use std::str::FromStr;
use std::sync::Arc;
use strum::AsStaticRef as _;
use strum_macros::AsStaticStr;
use strum_macros::IntoStaticStr;

use super::{
graphql::{ext::DirectiveFinder, TypeExt as _},
Expand Down Expand Up @@ -186,7 +185,7 @@ pub enum IdType {
/// An attribute value is represented as an enum with variants for all supported value types.
#[derive(Clone, Deserialize, Serialize, PartialEq, Eq)]
#[serde(tag = "type", content = "data")]
#[derive(AsStaticStr)]
#[derive(IntoStaticStr)]
pub enum Value {
String(String),
Int(i32),
Expand Down Expand Up @@ -215,7 +214,7 @@ impl stable_hash_legacy::StableHash for Value {
return;
}
stable_hash_legacy::StableHash::stable_hash(
&self.as_static().to_string(),
&Into::<&str>::into(self).to_string(),
sequence_number.next_child(),
state,
);
Expand Down
2 changes: 1 addition & 1 deletion runtime/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ semver = "1.0.18"
lazy_static = "1.4"
uuid = { version = "1.4.1", features = ["v4"] }
strum = "0.21.0"
strum_macros = "0.21.1"
strum_macros = "0.25.2"
bytes = "1.0"
anyhow = "1.0"
wasmtime = "0.27.0"
Expand Down

0 comments on commit c1d542e

Please sign in to comment.