Skip to content

Commit

Permalink
fix: call into
Browse files Browse the repository at this point in the history
  • Loading branch information
gengteng committed Mar 3, 2024
1 parent 55604c8 commit 5b5f726
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pingora-core/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ impl Server {
/// Command line options can either be passed by parsing the command line arguments via
/// `Opt::from_args()`, or be generated by other means.
pub fn new(opt: impl Into<Option<Opt>>) -> Result<Server> {
let opt = opt.into();
let (tx, rx) = watch::channel(false);

let conf = if let Some(opt) = opt.as_ref() {
Expand Down

0 comments on commit 5b5f726

Please sign in to comment.