Skip to content

Commit

Permalink
After deleting a topology, remove it from the map. (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
bormanp authored Nov 16, 2023
1 parent 44f0257 commit 4fe7a0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controller/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ func (s *server) DeleteTopology(ctx context.Context, req *cpb.DeleteTopologyRequ
if err := tm.Delete(ctx); err != nil {
return nil, status.Errorf(codes.Internal, "failed to delete topology: %v", err)
}
delete(s.topos, req.GetTopologyName())
return &cpb.DeleteTopologyResponse{}, nil
}

Expand Down

0 comments on commit 4fe7a0f

Please sign in to comment.