Skip to content

Commit

Permalink
fix: Start processing in Client and Peer before returning
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Aug 13, 2024
1 parent 592b95e commit b72d755
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/discovery/coordinator/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ func (c *Client) Type() string {
}

func (c *Client) Start(ctx context.Context) error {
c.proc.Start(ctx)

return nil
}

Expand Down
2 changes: 2 additions & 0 deletions pkg/mimicry/p2p/execution/execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ func (p *Peer) Start(ctx context.Context) (<-chan error, error) {
return nil, err
}

p.txProc.Start(ctx)

p.client.OnHello(ctx, func(ctx context.Context, hello *mimicry.Hello) error {
// setup client implementation and version info
split := strings.SplitN(hello.Name, "/", 2)
Expand Down

0 comments on commit b72d755

Please sign in to comment.