mirror of
https://github.com/sogou/workflow.git
synced 2026-02-08 01:33:17 +08:00
Fix some header files. (#1469)
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
#ifndef _WFKAFKACLIENT_H_
|
||||
#define _WFKAFKACLIENT_H_
|
||||
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <functional>
|
||||
@@ -119,7 +118,7 @@ protected:
|
||||
this->finish = false;
|
||||
}
|
||||
|
||||
virtual ~WFKafkaTask() {}
|
||||
virtual ~WFKafkaTask() { }
|
||||
|
||||
virtual SubTask *done();
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#ifndef _COMMREQUEST_H_
|
||||
#define _COMMREQUEST_H_
|
||||
|
||||
#include <errno.h>
|
||||
#include <stddef.h>
|
||||
#include "SubTask.h"
|
||||
#include "Communicator.h"
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#ifndef _IOREQUEST_H_
|
||||
#define _IOREQUEST_H_
|
||||
|
||||
#include <errno.h>
|
||||
#include "SubTask.h"
|
||||
#include "Communicator.h"
|
||||
|
||||
|
||||
@@ -35,7 +35,6 @@
|
||||
#include <snappy.h>
|
||||
#include <snappy-sinksource.h>
|
||||
#include "crc32c.h"
|
||||
#include "EncodeStream.h"
|
||||
#include "KafkaMessage.h"
|
||||
|
||||
namespace protocol
|
||||
|
||||
@@ -25,11 +25,11 @@
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <functional>
|
||||
#include "EncodeStream.h"
|
||||
#include "kafka_parser.h"
|
||||
#include "ProtocolMessage.h"
|
||||
#include "KafkaDataTypes.h"
|
||||
|
||||
|
||||
namespace protocol
|
||||
{
|
||||
|
||||
@@ -185,7 +185,7 @@ protected:
|
||||
using parse_func = std::function<int (void **buf, size_t *size)>;
|
||||
std::map<int, parse_func> parse_func_map;
|
||||
|
||||
class EncodeStream *stream;
|
||||
EncodeStream *stream;
|
||||
std::string msgbuf;
|
||||
std::string headbuf;
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
#include <string.h>
|
||||
#include <sstream>
|
||||
#include <utility>
|
||||
#include "EncodeStream.h"
|
||||
#include "RedisMessage.h"
|
||||
|
||||
namespace protocol
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include <stdint.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "EncodeStream.h"
|
||||
#include "ProtocolMessage.h"
|
||||
#include "redis_parser.h"
|
||||
|
||||
@@ -140,7 +141,7 @@ protected:
|
||||
virtual int append(const void *buf, size_t *size);
|
||||
bool encode_reply(redis_reply_t *reply);
|
||||
|
||||
class EncodeStream *stream_;
|
||||
EncodeStream *stream_;
|
||||
|
||||
private:
|
||||
size_t cur_size_;
|
||||
|
||||
Reference in New Issue
Block a user