Skip to content

Commit

Permalink
Rename Socketconfig.Spawn to SocketConfig.Bind.
Browse files Browse the repository at this point in the history
  • Loading branch information
lthibault committed Jun 1, 2024
1 parent c055c44 commit b28364b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion system/socket.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type SocketConfig struct {
Deliver api.Function
}

func (c SocketConfig) Spawn(ctx context.Context) Proc {
func (c SocketConfig) Bind(ctx context.Context) Proc {
if c.Deliver == nil {
return util.Failf[Proc]("missing export: deliver")
}
Expand Down
2 changes: 1 addition & 1 deletion system/socket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func TestSocket(t *testing.T) {
proc := system.SocketConfig{
Mailbox: deliver.Mailbox(),
Deliver: deliver,
}.Spawn(ctx)
}.Bind(ctx)
defer proc.Release()

f, release := proc.Handle(ctx, func(p system.Proc_handle_Params) error {
Expand Down

0 comments on commit b28364b

Please sign in to comment.