Skip to content

Commit 2534a80

Browse files
authored
fix: can not reclaim eventbus name (#612)
Signed-off-by: xdlbdy <xdlbdy@gmail.com>
1 parent 2735bb4 commit 2534a80

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

internal/controller/eventbus/controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ func (ctrl *controller) deleteEventbus(ctx context.Context, id vanus.ID) error {
360360

361361
// TODO(wenfeng.wang) notify gateway to cut flow
362362
delete(ctrl.eventbusMap, id)
363+
ctrl.eventbusNamespaceMapping.Delete(GetMappingKey(bus.NamespaceID, bus.Name))
363364
wg := sync.WaitGroup{}
364365

365366
for _, v := range bus.Eventlogs {

0 commit comments

Comments
 (0)