Skip to content

Commit 8099b99

Browse files
committed
support for named instances
1 parent ac8d235 commit 8099b99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/connect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub async fn connect_sql(
4343
Ok(v) => v.instance,
4444
Err(_) => None,
4545
};
46-
if let Some(v) = instance {
46+
if instance.is_some() {
4747
let tcp = TcpStream::connect_named(&config).await?;
4848
tcp.set_nodelay(true)?;
4949
Client::connect(config, tcp.compat_write()).await?

0 commit comments

Comments
 (0)