You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ji...@apache.org on 2025/05/16 03:38:04 UTC
(couchdb) 01/03: Fix `mem3:ping/1` function clause error
This is an automated email from the ASF dual-hosted git repository.
jiahuili430 pushed a commit to branch improve-couch-debug
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 59d395efb829956c12152424bdbbdd8c545420a8
Author: Jiahui Li <li...@gmail.com>
AuthorDate: Thu May 15 21:57:23 2025 -0500
Fix `mem3:ping/1` function clause error
Error log:
```
** exception error: no function clause matching mem3:ping_nodes(['node2@127.0.0.1']) (src/mem3.erl, line 453)
```
---
src/mem3/src/mem3.erl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mem3/src/mem3.erl b/src/mem3/src/mem3.erl
index c0d64d7e4..5e419ea12 100644
--- a/src/mem3/src/mem3.erl
+++ b/src/mem3/src/mem3.erl
@@ -434,7 +434,7 @@ engine(Opts) when is_list(Opts) ->
-spec ping(node()) -> pos_integer() | Error :: term().
ping(Node) ->
- [{Node, Res}] = ping_nodes([Node]),
+ [{Node, Res}] = ping_nodes([Node], ?PING_TIMEOUT_IN_MS),
Res.
-spec ping(node(), Timeout :: pos_integer()) -> pos_integer() | Error :: term().