1
0
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:
kwanhur
2022-03-10 22:42:44 +08:00
committed by GitHub
parent 4387085047
commit ac99a5c877
10 changed files with 19 additions and 19 deletions

View File

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