mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 00:24:58 +00:00
Add linter misspell (#530)
* Add linter misspell * Fix spelling Co-authored-by: Anbraten <anton@ju60.de>
This commit is contained in:
@@ -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 {
|
||||
|
@@ -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"),
|
||||
}),
|
||||
|
Reference in New Issue
Block a user