Skip to content

Commit

Permalink
Remove unused mut self from run_forever
Browse files Browse the repository at this point in the history
  • Loading branch information
kriswuollett committed Jan 2, 2025
1 parent 02c1ea1 commit 0096b01
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pingora-core/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,7 @@ impl Server {
}

/// Start the server using [Self::run] and default [RunArgs].
#[allow(unused_mut)] // TODO: May not need to keep mut self in interface
pub fn run_forever(mut self) -> ! {
pub fn run_forever(self) -> ! {
info!("Server starting");

self.run(RunArgs::default());
Expand Down

0 comments on commit 0096b01

Please sign in to comment.