Skip to content

Commit 0c5d17e

Browse files
committed
chore: move kill to goroutine
1 parent fd2b421 commit 0c5d17e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/api/internal/sandbox/store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func (s *Store) Sync(ctx context.Context, sandboxes []Sandbox, nodeID string) {
168168
// Redis is the source of truth — divergent sandboxes are orphans running
169169
// on the node but not present in the store. Kill them.
170170
for _, sbx := range sbxsToBeSynced {
171-
s.callbacks.RemoveSandboxFromNode(ctx, sbx)
171+
go s.callbacks.RemoveSandboxFromNode(ctx, sbx)
172172
}
173173
} else {
174174
// Memory backend — divergent sandboxes are ones discovered on the node

0 commit comments

Comments
 (0)