Skip to content

Commit 08ae889

Browse files
committed
Avoid deepCopy
1 parent ecf1b95 commit 08ae889

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

components/ws-manager-mk2/controllers/subscriber_controller.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,8 @@ func (r *SubscriberReconciler) Reconcile(ctx context.Context, req ctrl.Request)
5555
}
5656

5757
if r.OnReconcile != nil {
58-
ws := workspace.DeepCopy()
5958
go func() {
60-
r.OnReconcile(ctx, ws)
59+
r.OnReconcile(ctx, &workspace)
6160
}()
6261
}
6362

0 commit comments

Comments
 (0)