Add linter misspell (#530)

* Add linter misspell

* Fix spelling

Co-authored-by: Anbraten <anton@ju60.de>
This commit is contained in:
Lukas
2021-11-24 02:01:12 +01:00
committed by GitHub
parent 25bf91bd37
commit 116c310820
19 changed files with 35 additions and 35 deletions

View File

@@ -12,7 +12,7 @@ import (
"syscall"
)
// WithContextFunc returns a copy of parent context that is cancelled when
// WithContextFunc returns a copy of parent context that is canceled when
// an os interrupt signal is received. The callback function f is invoked
// before cancellation.
func WithContextFunc(ctx context.Context, f func()) context.Context {

View File

@@ -155,12 +155,12 @@ func run(c *cli.Context) error {
log.Err(err).Msg("")
return err
}
auther := &authorizer{
authorizer := &authorizer{
password: c.String("agent-secret"),
}
grpcServer := grpc.NewServer(
grpc.StreamInterceptor(auther.streamInterceptor),
grpc.UnaryInterceptor(auther.unaryIntercaptor),
grpc.StreamInterceptor(authorizer.streamInterceptor),
grpc.UnaryInterceptor(authorizer.unaryIntercaptor),
grpc.KeepaliveEnforcementPolicy(keepalive.EnforcementPolicy{
MinTime: c.Duration("keepalive-min-time"),
}),