We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi All,
Every time when we execute the code we are getting the below warning, not sure what is this warning menas and how to resolve this issue.
2020-11-09 07:11:16 (3585) [warning] __lambda1 - _tcpConnection is null - /root/.dub/packages/hunt-net-0.5.4/hunt-net/source/hunt/net/NetClientImpl.d:162
Code: module common.GetApiconf;
import common.GetConnections; import core.stdc.stdlib: exit; import hunt.database;
auto getApiconf(string stack) { Row[] apiconfig; auto con = new Connections(); Statement stmt = con.db.prepare("SELECT apiuri FROM apisettings WHERE stack = :stack"); stmt.setParameter("stack", stack); RowSet apistore = stmt.query(); scope(failure) { con.db.close(); exit(-2); } scope(exit) con.db.close(); foreach(i; apistore) { apiconfig ~= i; } return apiconfig; }
From, Vino.B
The text was updated successfully, but these errors were encountered:
It's just a normal debug message. Maybe, it will be removed in the next release of Hunt-Net.
Sorry, something went wrong.
Fixed in commit huntlabs/hunt-net@94adf24.
No branches or pull requests
Hi All,
Every time when we execute the code we are getting the below warning, not sure what is this warning menas and how to resolve this issue.
2020-11-09 07:11:16 (3585) [warning] __lambda1 - _tcpConnection is null - /root/.dub/packages/hunt-net-0.5.4/hunt-net/source/hunt/net/NetClientImpl.d:162
Code:
module common.GetApiconf;
import common.GetConnections;
import core.stdc.stdlib: exit;
import hunt.database;
auto getApiconf(string stack)
{
Row[] apiconfig;
auto con = new Connections();
Statement stmt = con.db.prepare("SELECT apiuri FROM apisettings WHERE stack = :stack");
stmt.setParameter("stack", stack);
RowSet apistore = stmt.query();
scope(failure) { con.db.close(); exit(-2); } scope(exit) con.db.close();
foreach(i; apistore) { apiconfig ~= i; }
return apiconfig;
}
From,
Vino.B
The text was updated successfully, but these errors were encountered: