mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
modules/s_dns: Elide dynamic allocation here.
This commit is contained in:
parent
ed3a7343cf
commit
87025e7b41
1 changed files with 1 additions and 5 deletions
|
@ -441,11 +441,7 @@ ircd::net::dns::cache::put(const string_view &type,
|
|||
const string_view &msg)
|
||||
try
|
||||
{
|
||||
const unique_buffer<mutable_buffer> content_buf
|
||||
{
|
||||
1_KiB
|
||||
};
|
||||
|
||||
char content_buf[1024];
|
||||
json::stack out{content_buf};
|
||||
json::stack::object content{out};
|
||||
json::stack::array array
|
||||
|
|
Loading…
Reference in a new issue