mirror of
https://github.com/getcompanion-ai/computer-host.git
synced 2026-04-15 06:04:38 +00:00
fix: fix code review issues
This commit is contained in:
parent
26b5d2966d
commit
2db57d0507
5 changed files with 310 additions and 0 deletions
|
|
@ -49,6 +49,9 @@ func (d *Daemon) CreatePublishedPort(ctx context.Context, machineID contracthost
|
|||
return nil, err
|
||||
}
|
||||
|
||||
d.publishedPortAllocMu.Lock()
|
||||
defer d.publishedPortAllocMu.Unlock()
|
||||
|
||||
hostPort, err := d.allocatePublishedHostPort(ctx)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue