fixed v4 chages
Some checks failed
lint / lint (pull_request) Failing after 1m21s
test / test (pull_request) Successful in 3m3s

This commit is contained in:
2025-02-20 19:11:27 +03:00
parent b224e80b80
commit c031230888
6 changed files with 116 additions and 21 deletions

View File

@@ -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{}