@@ -50,13 +50,6 @@ pub struct EnvVarsStore {
50
50
/// Set by the flag `GRAPH_DISABLE_SUBSCRIPTION_NOTIFICATIONS`. Not set
51
51
/// by default.
52
52
pub disable_subscription_notifications : bool ,
53
- /// A fallback in case the logic to remember database availability goes
54
- /// wrong; when this is set, we always try to get a connection and never
55
- /// use the availability state we remembered.
56
- ///
57
- /// Set by the flag `GRAPH_STORE_CONNECTION_TRY_ALWAYS`. Disabled by
58
- /// default.
59
- pub connection_try_always : bool ,
60
53
/// Set by the environment variable `GRAPH_REMOVE_UNUSED_INTERVAL`
61
54
/// (expressed in minutes). The default value is 360 minutes.
62
55
pub remove_unused_interval : chrono:: Duration ,
@@ -115,7 +108,6 @@ impl From<InnerStore> for EnvVarsStore {
115
108
typed_children_set_size : x. typed_children_set_size ,
116
109
order_by_block_range : x. order_by_block_range . 0 ,
117
110
disable_subscription_notifications : x. disable_subscription_notifications . 0 ,
118
- connection_try_always : x. connection_try_always . 0 ,
119
111
remove_unused_interval : chrono:: Duration :: minutes (
120
112
x. remove_unused_interval_in_minutes as i64 ,
121
113
) ,
@@ -149,8 +141,6 @@ pub struct InnerStore {
149
141
order_by_block_range : EnvVarBoolean ,
150
142
#[ envconfig( from = "GRAPH_DISABLE_SUBSCRIPTION_NOTIFICATIONS" , default = "false" ) ]
151
143
disable_subscription_notifications : EnvVarBoolean ,
152
- #[ envconfig( from = "GRAPH_STORE_CONNECTION_TRY_ALWAYS" , default = "false" ) ]
153
- connection_try_always : EnvVarBoolean ,
154
144
#[ envconfig( from = "GRAPH_REMOVE_UNUSED_INTERVAL" , default = "360" ) ]
155
145
remove_unused_interval_in_minutes : u64 ,
156
146
#[ envconfig( from = "GRAPH_STORE_RECENT_BLOCKS_CACHE_CAPACITY" , default = "10" ) ]
0 commit comments