From 11c2860ca2da486fa962dcb5b9c0b4519bfa818e Mon Sep 17 00:00:00 2001 From: firest Date: Mon, 27 Jun 2022 09:37:35 +0800 Subject: [PATCH] fix(exhook): make spellcheck happy --- apps/emqx_exhook/i18n/emqx_exhook_i18n.conf | 11 +++++++++-- apps/emqx_exhook/src/emqx_exhook_schema.erl | 2 ++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/apps/emqx_exhook/i18n/emqx_exhook_i18n.conf b/apps/emqx_exhook/i18n/emqx_exhook_i18n.conf index 48754ced7..5b34a245a 100644 --- a/apps/emqx_exhook/i18n/emqx_exhook_i18n.conf +++ b/apps/emqx_exhook/i18n/emqx_exhook_i18n.conf @@ -58,6 +58,13 @@ When gRPC is not available, Exhook tries to request the gRPC service at that int } } + socket_options { + desc { + en: "Connection socket options" + zh: "连接套接字设置" + } + } + keepalive { desc { en: """Enables/disables periodic transmission on a connected socket when no other data is exchanged. @@ -76,14 +83,14 @@ which means that also small amounts of data are sent immediately""" recbuf { desc { - en: "The minimum size of the receive buffer to use for the socket" + en: "The minimum size of receive buffer to use for the socket" zh: "套接字的最小接收缓冲区大小" } } sndbuf { desc { - en: "The minimum size of the send buffer to use for the socket" + en: "The minimum size of send buffer to use for the socket" zh: "套接字的最小发送缓冲区大小" } } diff --git a/apps/emqx_exhook/src/emqx_exhook_schema.erl b/apps/emqx_exhook/src/emqx_exhook_schema.erl index dfd4e3ac2..7b5e9adce 100644 --- a/apps/emqx_exhook/src/emqx_exhook_schema.erl +++ b/apps/emqx_exhook/src/emqx_exhook_schema.erl @@ -106,6 +106,8 @@ desc(server) -> "gRPC server configuration."; desc(ssl_conf) -> "SSL client configuration."; +desc(socket_options) -> + ?DESC(socket_options); desc(_) -> undefined.