Skip to content

Commit

Permalink
add plain
Browse files Browse the repository at this point in the history
  • Loading branch information
yufansong committed Sep 18, 2023
1 parent 1e25f4c commit a0b34e8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/connector/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,12 @@ impl NatsCommon {
));
}
}
_ => {}
Some("plain") => {}
_ => {
return Err(anyhow_error!(
"nats connect mode only accept user_and_password/credential/plain"
));
}
};

let servers = self.server_url.split(',').collect::<Vec<&str>>();
Expand Down

0 comments on commit a0b34e8

Please sign in to comment.