From 024935ee6ba3c092f3a8499345c322a6dbd30c12 Mon Sep 17 00:00:00 2001 From: Glendy Date: Tue, 29 Oct 2024 08:08:08 +0800 Subject: [PATCH] Update esockd_udp.erl erlang27 compile error --- src/esockd_udp.erl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/esockd_udp.erl b/src/esockd_udp.erl index 9fd2b3d..71679ac 100644 --- a/src/esockd_udp.erl +++ b/src/esockd_udp.erl @@ -55,22 +55,22 @@ -export([proxy_request/1]). --type(maybe(T) :: undefined | T). +%%-type(maybe(T) :: undefined | T). -record(state, { proto :: atom(), sock :: inet:socket(), port :: inet:port_number(), - rate_limit :: maybe(esockd_rate_limit:bucket()), + rate_limit :: esockd_rate_limit:bucket() | undefined, conn_limiter :: esockd_generic_limiter:limiter(), - limit_timer :: maybe(reference()), + limit_timer :: reference() | undefined, max_peers :: infinity | pos_integer(), peers :: map(), options :: [esockd:option()], access_rules :: list(), mfa :: esockd:mfargs(), - health_check_request :: maybe(binary()), - health_check_reply :: maybe(binary()) + health_check_request :: binary() | undefined, + health_check_reply :: binary() | undefined }). -define(ACTIVE_N, 100).