From c5a52dcb57cd23a4318e342b705f9f726e8d67a1 Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Fri, 17 Apr 2026 17:36:58 +0800 Subject: [PATCH] =?UTF-8?q?fix=20emqtt=20maybe=E7=B1=BB=E5=9E=8B=E5=AE=9A?= =?UTF-8?q?=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/emqtt.erl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/emqtt.erl b/src/emqtt.erl index 181427a..aaebb81 100644 --- a/src/emqtt.erl +++ b/src/emqtt.erl @@ -88,7 +88,7 @@ | {force_ping, boolean()} | {properties, properties()}). --type(maybe(T) :: undefined | T). +-type(optional(T) :: undefined | T). -type(topic() :: binary()). -type(payload() :: iodata()). -type(packet_id() :: 0..16#FFFF). @@ -128,12 +128,12 @@ bridge_mode :: boolean(), clientid :: binary(), clean_start :: boolean(), - username :: maybe(binary()), - password :: maybe(binary()), + username :: optional(binary()), + password :: optional(binary()), proto_ver :: version(), proto_name :: iodata(), keepalive :: non_neg_integer(), - keepalive_timer :: maybe(reference()), + keepalive_timer :: optional(reference()), force_ping :: boolean(), paused :: boolean(), will_flag :: boolean(),