refactor: compute n_copies once

Co-authored-by: Carol (Nichols || Goulding) <193874+carols10cents@users.noreply.github.com>
pull/24376/head
Dom 2023-03-27 10:04:17 +01:00 committed by GitHub
parent feae0ce345
commit 6105fd5bb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ impl<T> RpcWrite<T> {
Self {
endpoints,
n_copies: replica_copies.map(NonZeroUsize::get).unwrap_or(1),
n_copies,
}
}
}