From 6cee71564297ec567b5ea7c5f12d0502437b1225 Mon Sep 17 00:00:00 2001 From: Andrea Leopardi Date: Tue, 12 Nov 2024 08:49:15 +0100 Subject: [PATCH] Fix spec for erldns_zone_parser:zone_to_erlang/1 (#170) --- src/erldns_zone_parser.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/erldns_zone_parser.erl b/src/erldns_zone_parser.erl index 9ae18bb6..5c06fd03 100644 --- a/src/erldns_zone_parser.erl +++ b/src/erldns_zone_parser.erl @@ -59,7 +59,7 @@ start_link() -> %% @doc Takes a JSON zone and turns it into the tuple {Name, Sha, Records}. %% %% The default timeout for parsing is currently 30 seconds. --spec zone_to_erlang(binary()) -> {binary(), binary(), [dns:rr()], [erldns:keyset()]}. +-spec zone_to_erlang(map() | list()) -> {binary(), binary(), [dns:rr()], [erldns:keyset()]}. zone_to_erlang(Zone) -> gen_server:call(?SERVER, {parse_zone, Zone}, ?PARSE_TIMEOUT).