Skip to content

Commit

Permalink
TYPO: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
poteto0 committed Feb 10, 2025
1 parent a0ae4c0 commit 04e6ba4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 29 deletions.
2 changes: 1 addition & 1 deletion binder.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (*binder) Bind(ctx Context, object any) error {
}
}

// if not application/
// if not application/json
// return nil
return nil
}
4 changes: 2 additions & 2 deletions poteto.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,10 @@ func (p *poteto) RegisterWorkflow(workflowType string, priority uint, workflow W
// Leaf makes router group
// You can make your router clear
// with middlewares
func (p *poteto) Leaf(basePath string, handler LeafHandler) {
func (p *poteto) Leaf(basePath string, yield LeafHandler) {
leaf := NewLeaf(p, basePath)

handler(leaf)
yield(leaf)
}

func (p *poteto) GET(path string, handler HandlerFunc) error {
Expand Down
26 changes: 0 additions & 26 deletions poteto_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,32 +220,6 @@ func TestRunHandlerErrorInSetupServer(t *testing.T) {
}
}

/*
func TestRunStartUpWorkflows(t *testing.T) {
isCalled := false
p := New()
workflowFunc := func() error {
isCalled = true
return nil
}
p.RegisterWorkflow(constant.START_UP_WORKFLOW, 1, workflowFunc)
go func() {
p.Run("3031")
}()
select {
case <-time.After(500 * time.Millisecond):
if !isCalled {
t.Errorf("Unmatched")
}
p.Stop(stdContext.Background())
}
}
*/

func TestRunStartUpWorkflowsError(t *testing.T) {
p := New()
calledFunc := func() error {
Expand Down

0 comments on commit 04e6ba4

Please sign in to comment.