fixed v4 chages
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package http
|
||||
|
||||
import (
|
||||
"go.unistack.org/micro/v4/client"
|
||||
"net"
|
||||
"net/http"
|
||||
|
||||
@@ -30,6 +31,9 @@ type poolMaxStreams struct{}
|
||||
|
||||
// PoolMaxStreams maximum streams on a connectioin
|
||||
func PoolMaxStreams(n int) options.Option {
|
||||
return func(i interface{}) error {
|
||||
|
||||
}
|
||||
return options.ContextOption(poolMaxStreams{}, n)
|
||||
}
|
||||
|
||||
@@ -73,8 +77,8 @@ func HTTPDialer(d *net.Dialer) options.Option {
|
||||
type methodKey struct{}
|
||||
|
||||
// Method pass method option to client Call
|
||||
func Method(m string) options.Option {
|
||||
return options.ContextOption(methodKey{}, m)
|
||||
func Method(m string) client.CallOptions {
|
||||
return options.Context(methodKey{}, m)
|
||||
}
|
||||
|
||||
type pathKey struct{}
|
||||
|
Reference in New Issue
Block a user