update to latest micro
Some checks failed
test / test (push) Has been cancelled

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2025-03-04 23:32:30 +03:00
parent cd84ab56af
commit df8b69c3ad
8 changed files with 46 additions and 443 deletions

View File

@@ -4,7 +4,7 @@ import (
"crypto/tls"
"net"
"go.unistack.org/micro/v3/server"
"go.unistack.org/micro/v4/server"
)
// DefaultMaxMsgSize define maximum message size that server can send
@@ -18,10 +18,8 @@ type (
netListener struct{}
)
//
// MaxMsgSize set the maximum message in bytes the server can receive and
// send. Default maximum message size is 8K
//
func MaxMsgSize(s int) server.Option {
return server.SetOption(maxMsgSizeKey{}, s)
}