mirror of
https://github.com/go-kratos/kratos.git
synced 2025-11-06 08:59:18 +02:00
style(cmd/errors/examples/middleware/transport): fix common words' spelling mistakes (#1872)
* matchs to matches * contraint to constraint * resovle to resolver * ser to set Signed-off-by: kwanhur <huang_hua2012@163.com>
This commit is contained in:
@@ -79,11 +79,11 @@ func (b *Builder) Build() middleware.Middleware {
|
||||
} else {
|
||||
transporter = serverTransporter
|
||||
}
|
||||
return selector(transporter, b.matchs, b.ms...)
|
||||
return selector(transporter, b.matches, b.ms...)
|
||||
}
|
||||
|
||||
// matchs is match operation compliance Builder
|
||||
func (b *Builder) matchs(ctx context.Context, transporter transporter) bool {
|
||||
// matches is match operation compliance Builder
|
||||
func (b *Builder) matches(ctx context.Context, transporter transporter) bool {
|
||||
info, ok := transporter(ctx)
|
||||
if !ok {
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user