Skip to content

Commit 767f7f3

Browse files
committed
chore: Use borrows
1 parent 593152e commit 767f7f3

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

rust/operator-binary/src/zk_controller.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -993,12 +993,7 @@ fn build_server_rolegroup_statefulset(
993993
}
994994

995995
if logging.enable_vector_agent {
996-
match zk
997-
.spec
998-
.cluster_config
999-
.vector_aggregator_config_map_name
1000-
.to_owned()
1001-
{
996+
match &zk.spec.cluster_config.vector_aggregator_config_map_name {
1002997
Some(vector_aggregator_config_map_name) => {
1003998
pod_builder.add_container(
1004999
product_logging::framework::vector_container(
@@ -1012,7 +1007,7 @@ fn build_server_rolegroup_statefulset(
10121007
.with_memory_request("128Mi")
10131008
.with_memory_limit("128Mi")
10141009
.build(),
1015-
&vector_aggregator_config_map_name,
1010+
vector_aggregator_config_map_name,
10161011
)
10171012
.context(ConfigureLoggingSnafu)?,
10181013
);

0 commit comments

Comments
 (0)