Skip to content

Commit a57b220

Browse files
committed
chore: delete commented lines
1 parent 11a07a5 commit a57b220

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

src/perms/config.rs

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -59,38 +59,3 @@ impl SlotAuthzConfig {
5959
self.block_query_start as u64
6060
}
6161
}
62-
63-
// impl FromEnv for SlotAuthzConfig {
64-
// type Error = SlotAuthzConfigError;
65-
66-
// fn inventory() -> Vec<&'static EnvItemInfo> {
67-
// let mut v = vec![
68-
// &EnvItemInfo {
69-
// var: BLOCK_QUERY_CUTOFF,
70-
// description: "The block query cutoff time in seconds. This is the slot second after which requests will not be serviced. E.g. a value of 1 means that requests will not be serviced for the last second of any given slot.",
71-
// optional: false,
72-
// }, &EnvItemInfo {
73-
// var: BLOCK_QUERY_START,
74-
// description: "The block query start time in seconds. This is the slot second before which requests will not be serviced. E.g. a value of 1 means that requests will not be serviced for the first second of any given slot.",
75-
// optional: false,
76-
// }];
77-
// v.extend(SlotCalculator::inventory());
78-
// v
79-
// }
80-
81-
// fn from_env() -> Result<Self, FromEnvErr<Self::Error>> {
82-
// let calc = SlotCalculator::from_env().map_err(FromEnvErr::from)?;
83-
// let block_query_cutoff = u8::from_env_var(BLOCK_QUERY_CUTOFF)
84-
// .map_err(|e| e.map(SlotAuthzConfigError::BlockQueryCutoff))?
85-
// .clamp(0, 11);
86-
// let block_query_start = u8::from_env_var(BLOCK_QUERY_START)
87-
// .map_err(|e| e.map(SlotAuthzConfigError::BlockQueryStart))?
88-
// .clamp(0, 11);
89-
90-
// Ok(Self {
91-
// calc,
92-
// block_query_cutoff,
93-
// block_query_start,
94-
// })
95-
// }
96-
// }

0 commit comments

Comments
 (0)