Closed smoelius closed 6 months ago
Re this line: https://github.com/XAMPPRocky/octocrab/blob/131ddc02b2546f8c9863f98703fb92a3945ed8e8/src/models.rs#L959
The GitHub REST API docs describe the corresponding header (x-ratelimit-reset) as "UTC epoch seconds".
x-ratelimit-reset
This suggests that users should pass the value to Duration::from_secs.
Duration::from_secs
Since Duration::from_secs expects a u64, should this field be a u64?
u64
Thank you for your issue! Yeah I think that's a reasonable change.
Re this line: https://github.com/XAMPPRocky/octocrab/blob/131ddc02b2546f8c9863f98703fb92a3945ed8e8/src/models.rs#L959
The GitHub REST API docs describe the corresponding header (
x-ratelimit-reset
) as "UTC epoch seconds".This suggests that users should pass the value to
Duration::from_secs
.Since
Duration::from_secs
expects au64
, should this field be au64
?