Kaynağa Gözat

fix(exhook): make spellcheck happy

firest 3 yıl önce
ebeveyn
işleme
11c2860ca2

+ 9 - 2
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 {
   keepalive {
     desc {
     desc {
       en: """Enables/disables periodic transmission on a connected socket when no other data is exchanged.
       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 {
   recbuf {
     desc {
     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: "套接字的最小接收缓冲区大小"
       zh: "套接字的最小接收缓冲区大小"
     }
     }
   }
   }
 
 
   sndbuf {
   sndbuf {
     desc {
     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: "套接字的最小发送缓冲区大小"
       zh: "套接字的最小发送缓冲区大小"
     }
     }
   }
   }

+ 2 - 0
apps/emqx_exhook/src/emqx_exhook_schema.erl

@@ -106,6 +106,8 @@ desc(server) ->
     "gRPC server configuration.";
     "gRPC server configuration.";
 desc(ssl_conf) ->
 desc(ssl_conf) ->
     "SSL client configuration.";
     "SSL client configuration.";
+desc(socket_options) ->
+    ?DESC(socket_options);
 desc(_) ->
 desc(_) ->
     undefined.
     undefined.