Skip to content

Commit

Permalink
Upgrade some of the missing panels
Browse files Browse the repository at this point in the history
Signed-off-by: Filippo Costa <[email protected]>
  • Loading branch information
neysofu committed Jun 3, 2024
1 parent 6b38b4e commit 30d25c3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Binary file modified compose/grafana/data/grafana.db
Binary file not shown.
6 changes: 2 additions & 4 deletions crates/autogen_config_json_schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@
"title": "Config",
"description": "A [`serde`]-compatible representation of Graphix's YAML configuration file.",
"type": "object",
"required": [
"sources"
],
"properties": {
"blockChoicePolicy": {
"default": "maxSyncedBlocks",
"default": "earliest",
"allOf": [
{
"$ref": "#/definitions/BlockChoicePolicy"
Expand All @@ -30,6 +27,7 @@
"minimum": 0.0
},
"sources": {
"default": [],
"type": "array",
"items": {
"$ref": "#/definitions/ConfigSource"
Expand Down
2 changes: 1 addition & 1 deletion crates/graphix_lib/src/block_choice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ use serde::{Deserialize, Serialize};
#[serde(rename_all = "camelCase")]
pub enum BlockChoicePolicy {
// Use the earliest block that all indexers have in common
#[default]
Earliest,
// Use the block that maximizes the total number of blocks synced across all indexers
#[default]
MaxSyncedBlocks,
}

Expand Down
1 change: 1 addition & 0 deletions crates/graphix_lib/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ pub struct Config {

// Indexing options
// ----------------
#[serde(default)]
pub sources: Vec<ConfigSource>,
#[serde(default)]
pub block_choice_policy: BlockChoicePolicy,
Expand Down

0 comments on commit 30d25c3

Please sign in to comment.