Skip to content

Commit

Permalink
refactor: remove unused tenantid
Browse files Browse the repository at this point in the history
it's no longer needed in the struct, since it's carried within the async
tasks.
  • Loading branch information
koivunej committed Nov 21, 2022
1 parent 4f41101 commit 7e0ffcc
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pageserver/src/walredo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ pub trait WalRedoManager: Send + Sync {
/// records.
///
pub struct PostgresRedoManager {
tenant_id: TenantId,
conf: &'static PageServerConf,
handle: Handle,
}
Expand Down Expand Up @@ -206,11 +205,7 @@ impl PostgresRedoManager {
let (handle, fut) = tokio_postgres_redo(conf, tenant_id, 14);
BACKGROUND_RUNTIME.spawn(fut);

PostgresRedoManager {
tenant_id,
conf,
handle,
}
PostgresRedoManager { conf, handle }
}

///
Expand Down

0 comments on commit 7e0ffcc

Please sign in to comment.