File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -643,16 +643,16 @@ func (api *API) updateContainers(ctx context.Context) error {
643
643
api .mu .Lock ()
644
644
defer api .mu .Unlock ()
645
645
646
- var knownDevcontainers map [string ]codersdk.WorkspaceAgentDevcontainer
646
+ var previouslyKnownDevcontainers map [string ]codersdk.WorkspaceAgentDevcontainer
647
647
if len (api .updateChans ) > 0 {
648
- knownDevcontainers = maps .Clone (api .knownDevcontainers )
648
+ previouslyKnownDevcontainers = maps .Clone (api .knownDevcontainers )
649
649
}
650
650
651
651
api .processUpdatedContainersLocked (ctx , updated )
652
652
653
653
if len (api .updateChans ) > 0 {
654
654
statesAreEqual := maps .EqualFunc (
655
- knownDevcontainers ,
655
+ previouslyKnownDevcontainers ,
656
656
api .knownDevcontainers ,
657
657
func (dc1 , dc2 codersdk.WorkspaceAgentDevcontainer ) bool {
658
658
return dc1 .Equals (dc2 )
You can’t perform that action at this time.
0 commit comments