Skip to content

Commit

Permalink
Make building without the retry feature work. (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
khuey authored May 12, 2023
1 parent 9bf06f5 commit f854676
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ use crate::error::{
use crate::service::middleware::base_uri::BaseUriLayer;
use crate::service::middleware::extra_headers::ExtraHeadersLayer;

#[cfg(feature = "retry")]
use crate::service::middleware::retry::RetryConfig;

use auth::{AppAuth, Auth};
Expand Down Expand Up @@ -444,6 +445,7 @@ impl<Svc, Config, LayerState> OctocrabBuilder<Svc, Config, NoAuth, LayerState> {
}

impl OctocrabBuilder<NoSvc, DefaultOctocrabBuilderConfig, NoAuth, NotLayerReady> {
#[cfg(feature = "retry")]
pub fn add_retry_config(&mut self, retry_config: RetryConfig) -> &mut Self {
self.config.retry_config = retry_config;
self
Expand Down

0 comments on commit f854676

Please sign in to comment.