Skip to content

Commit

Permalink
Rename system.Module.Bind to system.Module.Boot.
Browse files Browse the repository at this point in the history
  • Loading branch information
lthibault committed May 25, 2024
1 parent 61510d1 commit 08ee6f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion system/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (m *Module) SocketConfig(mod api.Module) SocketConfig {
}
}

func (m *Module) Bind(mod api.Module) capnp.Client {
func (m *Module) Boot(mod api.Module) capnp.Client {
socket := m.SocketConfig(mod).Build()
server := Proc_NewServer(socket)
return capnp.NewClient(server)
Expand Down
2 changes: 1 addition & 1 deletion system/system_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func TestSystemSocket(t *testing.T) {
require.NoError(t, err)
defer mod.Close(ctx)

client := sys.Bind(mod) // bind the guest module to the system socket
client := sys.Boot(mod) // bind the guest module to the system socket
defer client.Release()

f, release := system.Proc(client).Handle(ctx, func(h system.Proc_handle_Params) error {
Expand Down
2 changes: 1 addition & 1 deletion vat/vat.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (n Network) LocalID() rpc.PeerID {
}

func (n Network) Serve(ctx context.Context) error {
c := n.System.Bind(n.Guest)
c := n.System.Boot(n.Guest)
defer c.Release()

for {
Expand Down

0 comments on commit 08ee6f3

Please sign in to comment.