Skip to content

Commit

Permalink
fix code block
Browse files Browse the repository at this point in the history
  • Loading branch information
vikstrous committed Apr 21, 2024
1 parent 6c4bf2e commit 86fe9a3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,12 @@ type validationState struct {

// NewWorker defines a worker along with all of the workflows and activities. Example usage:
/*
```go
wrk, err := tempts.NewWorker(queueMain, []tempts.Registerable{
activityTypeFormatName.WithImplementation(activityFormatName),
activityTypeGreet.WithImplementation(activityGreet),
workflowTypeFormatAndGreet.WithImplementation(workflowFormatAndGreet),
workflowTypeJustGreet.WithImplementation(workflowJustGreet),
})
```
*/
func NewWorker(queue *Queue, registerables []Registerable) (*Worker, error) {
v := &validationState{
Expand Down

0 comments on commit 86fe9a3

Please sign in to comment.