Future<Unit> wangle fixup
[folly.git] / folly / wangle / codec / StringCodec.h
index cbe0e843b25c722d2da0a3923107fa02b012eec4..0f53a980600231be23901ecc37195a5e7de06102 100644 (file)
@@ -37,7 +37,7 @@ class StringCodec : public Handler<std::unique_ptr<IOBuf>, std::string,
     ctx->fireRead(data);
   }
 
-  Future<void> write(Context* ctx, std::string msg) override {
+  Future<Unit> write(Context* ctx, std::string msg) override {
     auto buf = IOBuf::copyBuffer(msg.data(), msg.length());
     return ctx->fireWrite(std::move(buf));
   }