Skip to content

Commit 8f4b98d

Browse files
erwamartinshogo82148
authored andcommitted
Fix regression in appengine.go (#949)
1 parent 89ec2a9 commit 8f4b98d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

AUTHORS

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Daniël van Eeden <git at myname.nl>
2727
Dave Protasowski <dprotaso at gmail.com>
2828
DisposaBoy <disposaboy at dby.me>
2929
Egor Smolyakov <egorsmkv at gmail.com>
30+
Erwan Martin <hello at erwan.io>
3031
Evan Shaw <evan at vendhq.com>
3132
Frederick Mayle <frederickmayle at gmail.com>
3233
Gustavo Kristic <gkristic at gmail.com>

appengine.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ package mysql
1212

1313
import (
1414
"context"
15+
"net"
1516

1617
"google.golang.org/appengine/cloudsql"
1718
)
1819

1920
func init() {
20-
RegisterDialContext("cloudsql", func(_ context.Context, instance addr) (net.Conn, error) {
21+
RegisterDialContext("cloudsql", func(_ context.Context, instance string) (net.Conn, error) {
2122
// XXX: the cloudsql driver still does not export a Context-aware dialer.
2223
return cloudsql.Dial(instance)
2324
})

0 commit comments

Comments
 (0)