@@ -10,11 +10,12 @@ pub struct SlotAuthzConfig {
10
10
/// number for a given timestamp.
11
11
calc : SlotCalculator ,
12
12
/// The block query cutoff time in seconds. This is the slot second after
13
- /// which requests will not be serviced. E.g. a value of 1 means that
14
- /// requests will not be serviced for the last second of any given slot.
13
+ /// which requests will not be serviced. E.g. For a slot duration of 12,
14
+ /// a value of 10 means that requests will not be serviced for the last 2 seconds
15
+ /// of any given slot.
15
16
///
16
- /// On loading from env, the number will be clamped between 0 and 11, as
17
- /// the slot duration is 12 seconds.
17
+ /// On loading from env, the number will be clamped between 0 and slot_duration,
18
+ /// which is generally expected to be 12 seconds.
18
19
#[ from_env(
19
20
var = "BLOCK_QUERY_CUTOFF" ,
20
21
desc = "The block query cutoff time in seconds."
@@ -24,8 +25,8 @@ pub struct SlotAuthzConfig {
24
25
/// which requests will not be serviced. E.g. a value of 1 means that
25
26
/// requests will not be serviced for the first second of any given slot.
26
27
///
27
- /// On loading from env, the number will be clamped between 0 and 11 , as
28
- /// the slot duration is 12 seconds.
28
+ /// On loading from env, the number will be clamped between 0 and slot_duration , as
29
+ /// which is generally expected to be 12 seconds.
29
30
#[ from_env(
30
31
var = "BLOCK_QUERY_START" ,
31
32
desc = "The block query start time in seconds."
0 commit comments