Skip to content

Commit 8d30055

Browse files
committed
PR feedback
Signed-off-by: Ryan Levick <[email protected]>
1 parent fb84de2 commit 8d30055

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

crates/outbound-mysql/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl v2::HostConnection for OutboundMysql {
5353
.await
5454
.map_err(|e| v2::Error::ConnectionFailed(format!("{e:?}")))?,
5555
)
56-
.map_err(|_| v2::Error::Other("too many connections".into()))
56+
.map_err(|_| v2::Error::ConnectionFailed("too many connections".into()))
5757
.map(Resource::new_own)
5858
}
5959
.await)

crates/outbound-pg/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ impl v2::HostConnection for OutboundPg {
5656
.await
5757
.map_err(|e| v2::Error::ConnectionFailed(format!("{e:?}")))?,
5858
)
59-
.map_err(|_| v2::Error::Other("too many connections".into()))
59+
.map_err(|_| v2::Error::ConnectionFailed("too many connections".into()))
6060
.map(Resource::new_own)
6161
}
6262
.await)

wit/preview2/mysql.wit

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interface mysql {
22
use fermyon:spin/rdbms-types.{parameter-value, row-set}
33

4-
/// Errors related to interacting with Mysql.
4+
/// Errors related to interacting with MySQL.
55
variant error {
66
connection-failed(string),
77
bad-parameter(string),
@@ -10,9 +10,9 @@ interface mysql {
1010
other(string)
1111
}
1212

13-
/// A connection to a mysql database.
13+
/// A connection to a MySQL database.
1414
resource connection {
15-
/// Open a connection to the Postgres instance at `address`.
15+
/// Open a connection to the MySQL instance at `address`.
1616
open: static func(address: string) -> result<connection, error>
1717

1818
/// query the database: select

0 commit comments

Comments
 (0)