RRDeleted response message.

This commit is contained in:
Philippe Pittoli 2023-07-10 03:34:06 +02:00
parent af7379ad43
commit 3fcb3a0d64
2 changed files with 8 additions and 1 deletions

View File

@ -63,5 +63,12 @@ class DNSManager::Response
end
end
DNSManager.responses << DomainAdded
IPC::JSON.message RRDeleted, 18 do
property rrid : UInt32
def initialize(@rrid)
end
end
DNSManager.responses << RRDeleted
end

View File

@ -248,7 +248,7 @@ class DNSManager::Storage
# Update the zone.
zones_by_domain.update_or_create zone.domain, zone
Response::Success.new
Response::RRDeleted.new rrid
rescue e
Baguette::Log.error "trying to remove a resource record in domain #{domain}: #{e}"
Response::Error.new "error while removing a resource record in domain #{domain}"