We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8157023 commit cfbc404Copy full SHA for cfbc404
1 file changed
src/http/local/Stock.cxx
@@ -26,9 +26,9 @@
26
#include <string.h>
27
28
static StockKey
29
-lhttp_stock_key(struct pool *pool, const LhttpAddress *address) noexcept
+lhttp_stock_key(AllocatorPtr alloc, const LhttpAddress *address) noexcept
30
{
31
- return address->GetServerId(AllocatorPtr(*pool));
+ return address->GetServerId(alloc);
32
}
33
34
/*
@@ -191,7 +191,7 @@ LhttpStock::Get(const LhttpAddress &address,
191
CancellablePointer &cancel_ptr) noexcept
192
193
const TempPoolLease tpool;
194
- mchild_stock.Get(lhttp_stock_key(tpool, &address),
+ mchild_stock.Get(lhttp_stock_key(*tpool, &address),
195
ToNopPointer(const_cast<LhttpAddress *>(&address)),
196
address.concurrency,
197
handler, cancel_ptr);
0 commit comments