Skip to content

Commit

Permalink
Refactor: Rename server function to loop (disambiguate)
Browse files Browse the repository at this point in the history
  • Loading branch information
cognifloyd committed Sep 22, 2021
1 parent bf82635 commit cceaf44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func main() {
app.Name = "woodpecker-server"
app.Version = version.String()
app.Usage = "woodpecker server"
app.Action = server
app.Action = loop
app.Flags = flags
app.Before = before

Expand Down
2 changes: 1 addition & 1 deletion cmd/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import (
oldcontext "golang.org/x/net/context"
)

func server(c *cli.Context) error {
func loop(c *cli.Context) error {

// debug level if requested by user
if c.Bool("debug") {
Expand Down

0 comments on commit cceaf44

Please sign in to comment.