Skip to content

Commit

Permalink
feat(fxgomysqlserver): Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ekkinox committed May 29, 2024
1 parent e3642fe commit b7aea66
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fxgomysqlserver/config/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ const (
)

// String returns a string representation of the [Transport].
func (d Transport) String() string {
return string(d)
func (t Transport) String() string {
return string(t)
}

// FetchTransport returns a [Transport] for a given name.
func FetchTransport(name string) Transport {
//nolint:exhaustive
switch d := Transport(strings.ToLower(name)); d {
switch t := Transport(strings.ToLower(name)); t {
case TCPTransport,
SocketTransport,
MemoryTransport:
return d
return t
default:
return UnknownTransport
}
Expand Down

0 comments on commit b7aea66

Please sign in to comment.