File 0328-megaco-udp-Add-spec-for-reset_stats-1.patch of Package erlang
From 11102314e06c5b402a0a1b240b79bb4b277f6306 Mon Sep 17 00:00:00 2001
From: Micael Karlberg <bmk@erlang.org>
Date: Tue, 25 Feb 2025 19:05:09 +0100
Subject: [PATCH 8/8] [megaco|udp] Add spec for reset_stats/1
---
lib/megaco/src/udp/megaco_udp.erl | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/megaco/src/udp/megaco_udp.erl b/lib/megaco/src/udp/megaco_udp.erl
index 807323ad42..78df0913e6 100644
--- a/lib/megaco/src/udp/megaco_udp.erl
+++ b/lib/megaco/src/udp/megaco_udp.erl
@@ -150,6 +150,9 @@ reset_stats() ->
Reset all counters for the given UDP handle.
""".
+-spec reset_stats(SH) -> megaco:void() when
+ SH :: send_handle().
+
reset_stats(SH) when is_record(SH, send_handle) ->
megaco_stats:reset_stats(megaco_udp_stats, SH).
--
2.43.0