Skip to content

Commit cfbc404

Browse files
committed
http/local/Stock: pass AllocatorPtr to lhttp_stock_key()
1 parent 8157023 commit cfbc404

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/http/local/Stock.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
#include <string.h>
2727

2828
static StockKey
29-
lhttp_stock_key(struct pool *pool, const LhttpAddress *address) noexcept
29+
lhttp_stock_key(AllocatorPtr alloc, const LhttpAddress *address) noexcept
3030
{
31-
return address->GetServerId(AllocatorPtr(*pool));
31+
return address->GetServerId(alloc);
3232
}
3333

3434
/*
@@ -191,7 +191,7 @@ LhttpStock::Get(const LhttpAddress &address,
191191
CancellablePointer &cancel_ptr) noexcept
192192
{
193193
const TempPoolLease tpool;
194-
mchild_stock.Get(lhttp_stock_key(tpool, &address),
194+
mchild_stock.Get(lhttp_stock_key(*tpool, &address),
195195
ToNopPointer(const_cast<LhttpAddress *>(&address)),
196196
address.concurrency,
197197
handler, cancel_ptr);

0 commit comments

Comments
 (0)