Skip to content

Commit f690097

Browse files
adwk67maltesander
andauthored
Update rust/operator-binary/src/connections/queue.rs
Co-authored-by: Malte Sander <malte.sander.it@gmail.com>
1 parent ce50743 commit f690097

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • rust/operator-binary/src/connections

rust/operator-binary/src/connections/queue.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ impl QueueType {
4747
impl RedisQueue {
4848
pub fn connection_string(&self, username_env: &str, password_env: &str) -> String {
4949
format!(
50-
"redis://${}:${}@{}:{}/0",
51-
username_env, password_env, self.host, self.port
50+
"redis://${username_env}:${password_env}@{host}:{port}/0",
51+
host = self.host,
52+
port = self.port
5253
)
5354
}
5455
}

0 commit comments

Comments
 (0)