mirror of
https://gitea.com/gitea/act_runner.git
synced 2024-12-28 11:58:20 +01:00
chore: fix lint error
This commit is contained in:
parent
e54de37242
commit
827bd953e7
@ -188,8 +188,10 @@ func runDaemon(ctx context.Context, input *Input) func(cmd *cobra.Command, args
|
|||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
|
|
||||||
conn.SetReadDeadline(time.Now().Add(timeout))
|
_ = conn.SetReadDeadline(time.Now().Add(timeout))
|
||||||
conn.SetPongHandler(func(string) error { conn.SetReadDeadline(time.Now().Add(timeout)); return nil })
|
conn.SetPongHandler(func(string) error {
|
||||||
|
return conn.SetReadDeadline(time.Now().Add(timeout))
|
||||||
|
})
|
||||||
|
|
||||||
_, message, err := conn.ReadMessage()
|
_, message, err := conn.ReadMessage()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
28
cmd/root.go
28
cmd/root.go
@ -18,28 +18,28 @@ const version = "0.1"
|
|||||||
|
|
||||||
type Input struct {
|
type Input struct {
|
||||||
actor string
|
actor string
|
||||||
workdir string
|
// workdir string
|
||||||
workflowsPath string
|
// workflowsPath string
|
||||||
autodetectEvent bool
|
// autodetectEvent bool
|
||||||
eventPath string
|
// eventPath string
|
||||||
reuseContainers bool
|
reuseContainers bool
|
||||||
bindWorkdir bool
|
bindWorkdir bool
|
||||||
secrets []string
|
// secrets []string
|
||||||
envs []string
|
// envs []string
|
||||||
platforms []string
|
// platforms []string
|
||||||
dryrun bool
|
// dryrun bool
|
||||||
forcePull bool
|
forcePull bool
|
||||||
forceRebuild bool
|
forceRebuild bool
|
||||||
noOutput bool
|
// noOutput bool
|
||||||
envfile string
|
// envfile string
|
||||||
secretfile string
|
// secretfile string
|
||||||
insecureSecrets bool
|
insecureSecrets bool
|
||||||
defaultBranch string
|
// defaultBranch string
|
||||||
privileged bool
|
privileged bool
|
||||||
usernsMode string
|
usernsMode string
|
||||||
containerArchitecture string
|
containerArchitecture string
|
||||||
containerDaemonSocket string
|
containerDaemonSocket string
|
||||||
noWorkflowRecurse bool
|
// noWorkflowRecurse bool
|
||||||
useGitIgnore bool
|
useGitIgnore bool
|
||||||
forgeInstance string
|
forgeInstance string
|
||||||
containerCapAdd []string
|
containerCapAdd []string
|
||||||
@ -49,7 +49,7 @@ type Input struct {
|
|||||||
artifactServerPort string
|
artifactServerPort string
|
||||||
jsonLogger bool
|
jsonLogger bool
|
||||||
noSkipCheckout bool
|
noSkipCheckout bool
|
||||||
remoteName string
|
// remoteName string
|
||||||
}
|
}
|
||||||
|
|
||||||
func (i *Input) newPlatforms() map[string]string {
|
func (i *Input) newPlatforms() map[string]string {
|
||||||
|
Loading…
Reference in New Issue
Block a user