Browse Source

rf: eArango 优化

master
SisMaker 3 years ago
parent
commit
62edfe143d
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      src/agVstCli/agVstCli.erl

+ 6
- 6
src/agVstCli/agVstCli.erl View File

@ -94,19 +94,19 @@ castAgency(PoolNameOrSocket, Method, Path, QueryPars, Headers, Body, Pid, IsSyst
case gen_tcp:send(PoolNameOrSocket, Request) of case gen_tcp:send(PoolNameOrSocket, Request) of
ok -> ok ->
receiveTcpData(#recvState{}, PoolNameOrSocket); receiveTcpData(#recvState{}, PoolNameOrSocket);
{error, Reason} = Err ->
?AgErr(castAgency, ":gen_tcp send error: ~p ~n", [Reason]),
_Err ->
?AgErr(castAgency, ":gen_tcp send error: ~p ~n", [_Err]),
eArango:disConnDb(PoolNameOrSocket), eArango:disConnDb(PoolNameOrSocket),
Err
_Err
end; end;
ssl -> ssl ->
case ssl:send(PoolNameOrSocket, Request) of case ssl:send(PoolNameOrSocket, Request) of
ok -> ok ->
receiveSslData(#recvState{}, PoolNameOrSocket); receiveSslData(#recvState{}, PoolNameOrSocket);
{error, Reason} = Err ->
?AgErr(castAgency, ":ssl send error: ~p ~n", [Reason]),
_Err ->
?AgErr(castAgency, ":ssl send error: ~p ~n", [_Err]),
eArango:disConnDb(PoolNameOrSocket), eArango:disConnDb(PoolNameOrSocket),
Err
_Err
end end
end; end;
_ -> _ ->

Loading…
Cancel
Save