Skip to content

Commit

Permalink
fix small issue with grpc merge
Browse files Browse the repository at this point in the history
  • Loading branch information
magiconair committed Dec 7, 2018
1 parent 179c6f8 commit 6a59319
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions proxy/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ package proxy
import (
"context"
"crypto/tls"
"google.golang.org/grpc"
"net"
"net/http"
"sync"
"time"

"google.golang.org/grpc"

"github.com/fabiolb/fabio/config"
"github.com/fabiolb/fabio/proxy/tcp"
)
Expand Down Expand Up @@ -71,7 +72,7 @@ func ListenAndServeHTTP(l config.Listen, h http.Handler, cfg *tls.Config) error
}

func ListenAndServeGRPC(l config.Listen, opts []grpc.ServerOption, cfg *tls.Config) error {
ln, err := ListenTCP(l.Addr, cfg)
ln, err := ListenTCP(l, cfg)
if err != nil {
return err
}
Expand Down

0 comments on commit 6a59319

Please sign in to comment.