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/09/17 16:14:23 UTC
(couchdb-ibrowse) branch fix-compilation-warnings created (now dfe8242)
This is an automated email from the ASF dual-hosted git repository.
jiahuili430 pushed a change to branch fix-compilation-warnings
in repository https://gitbox.apache.org/repos/asf/couchdb-ibrowse.git
at dfe8242 Replace `gen_server:format_status/2` to `format_status/1`
This branch includes the following new commits:
new dfe8242 Replace `gen_server:format_status/2` to `format_status/1`
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(couchdb-ibrowse) 01/01: Replace `gen_server:format_status/2` to `format_status/1`
Posted by ji...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jiahuili430 pushed a commit to branch fix-compilation-warnings
in repository https://gitbox.apache.org/repos/asf/couchdb-ibrowse.git
commit dfe8242718cfbef03d4379dd431f3d9a62fd384c
Author: Jiahui Li <li...@gmail.com>
AuthorDate: Wed Sep 17 11:13:26 2025 -0500
Replace `gen_server:format_status/2` to `format_status/1`
Fix the following warnings:
```log
[2025-09-17T13:01:35.309Z] /home/jenkins/workspace/next-multibranch-pipeline_otp-27/src/ibrowse/src/ibrowse_http_client.erl:9:2: Warning: the callback gen_server:format_status(_,_) is deprecated; use format_status/1 instead
```
---
src/ibrowse_http_client.erl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/ibrowse_http_client.erl b/src/ibrowse_http_client.erl
index bee6a70..a0e298e 100644
--- a/src/ibrowse_http_client.erl
+++ b/src/ibrowse_http_client.erl
@@ -34,7 +34,7 @@
handle_info/2,
terminate/2,
code_change/3,
- format_status/2
+ format_status/1
]).
-include("ibrowse.hrl").
@@ -328,7 +328,7 @@ code_change(_OldVsn, State, _Extra) ->
%% Purpose: Clean process state before logging
%% Returns: key value list
%%--------------------------------------------------------------------
-format_status(_Opt, [_PDict, State]) ->
+format_status([_PDict, State]) ->
#state{
reqs=Reqs,
reply_buffer=ReplyBuf,