X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=blobdiff_plain;f=folly%2Fwangle%2Fcodec%2FStringCodec.h;h=0f53a980600231be23901ecc37195a5e7de06102;hp=cbe0e843b25c722d2da0a3923107fa02b012eec4;hb=98a8a89d7d118b3098c0fb1308f171745b530e4b;hpb=e845ef57f1f368944123e4a50bd4d1616a363efa diff --git a/folly/wangle/codec/StringCodec.h b/folly/wangle/codec/StringCodec.h index cbe0e843..0f53a980 100644 --- a/folly/wangle/codec/StringCodec.h +++ b/folly/wangle/codec/StringCodec.h @@ -37,7 +37,7 @@ class StringCodec : public Handler, std::string, ctx->fireRead(data); } - Future write(Context* ctx, std::string msg) override { + Future write(Context* ctx, std::string msg) override { auto buf = IOBuf::copyBuffer(msg.data(), msg.length()); return ctx->fireWrite(std::move(buf)); }