Compare commits
2 Commits
cache/redi
...
rpc/v0.0.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0b7e6265f4 | ||
|
|
b54b4252d9 |
@@ -22,10 +22,10 @@ require (
|
||||
github.com/olekukonko/tablewriter v0.0.5
|
||||
github.com/spf13/cobra v1.9.1
|
||||
github.com/tx7do/kratos-bootstrap/api v0.0.13
|
||||
github.com/tx7do/kratos-bootstrap/config v0.0.8
|
||||
github.com/tx7do/kratos-bootstrap/logger v0.0.8
|
||||
github.com/tx7do/kratos-bootstrap/registry v0.0.8
|
||||
github.com/tx7do/kratos-bootstrap/tracer v0.0.8
|
||||
github.com/tx7do/kratos-bootstrap/config v0.0.9
|
||||
github.com/tx7do/kratos-bootstrap/logger v0.0.9
|
||||
github.com/tx7do/kratos-bootstrap/registry v0.0.9
|
||||
github.com/tx7do/kratos-bootstrap/tracer v0.0.9
|
||||
github.com/tx7do/kratos-bootstrap/utils v0.1.3
|
||||
golang.org/x/tools v0.33.0
|
||||
)
|
||||
|
||||
@@ -74,7 +74,7 @@ func initRestConfig(cfg *conf.Bootstrap, mds ...middleware.Middleware) []kratosR
|
||||
}
|
||||
ms = append(ms, midRateLimit.Server(midRateLimit.WithLimiter(limiter)))
|
||||
}
|
||||
if cfg.Server.Grpc.Middleware.GetEnableMetadata() {
|
||||
if cfg.Server.Rest.Middleware.GetEnableMetadata() {
|
||||
ms = append(ms, metadata.Server())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user