fix: fix code review issues

This commit is contained in:
Harivansh Rathi 2026-04-09 14:42:34 +00:00
parent 26b5d2966d
commit 2db57d0507
5 changed files with 310 additions and 0 deletions

View file

@ -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