0
0
Fork 0
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:
Jason Volk 2019-05-09 02:57:10 -07:00
parent ed3a7343cf
commit 87025e7b41

View file

@ -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