From b28364b1d802b0c41931615244dcc460c271fbf5 Mon Sep 17 00:00:00 2001 From: Louis Thibault Date: Sat, 1 Jun 2024 19:10:41 -0400 Subject: [PATCH] Rename Socketconfig.Spawn to SocketConfig.Bind. --- system/socket.go | 2 +- system/socket_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/system/socket.go b/system/socket.go index f874b66..da63996 100644 --- a/system/socket.go +++ b/system/socket.go @@ -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") } diff --git a/system/socket_test.go b/system/socket_test.go index 1390254..3a99c11 100644 --- a/system/socket_test.go +++ b/system/socket_test.go @@ -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 {