Skip to content

Commit

Permalink
chore: remove unused example code (#1148)
Browse files Browse the repository at this point in the history
  • Loading branch information
wesbillman authored Mar 27, 2024
1 parent eebe034 commit 3597f75
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions examples/go/echo/echo.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,3 @@ func Echo(ctx context.Context, req EchoRequest) (EchoResponse, error) {

return EchoResponse{Message: fmt.Sprintf("Hello, %s!!! It is %s!", req.Name.Default(defaultName.Get(ctx)), tresp.Time)}, nil
}

/*
verb cronJob(Unit) Unit
+cron "0 0 * * *"
*/

//ftl:cron <schedule>
func CronJob(ctx context.Context) error {
_, err := ftl.Call(ctx, Echo, EchoRequest{})
return err
}

0 comments on commit 3597f75

Please sign in to comment.