Fix some header files. (#1469)

This commit is contained in:
xiehan
2024-01-09 17:48:57 +08:00
committed by GitHub
parent 244913d348
commit 0f6cc755a2
7 changed files with 7 additions and 7 deletions

View File

@@ -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();

View File

@@ -19,6 +19,7 @@
#ifndef _COMMREQUEST_H_
#define _COMMREQUEST_H_
#include <errno.h>
#include <stddef.h>
#include "SubTask.h"
#include "Communicator.h"

View File

@@ -19,6 +19,7 @@
#ifndef _IOREQUEST_H_
#define _IOREQUEST_H_
#include <errno.h>
#include "SubTask.h"
#include "Communicator.h"

View File

@@ -35,7 +35,6 @@
#include <snappy.h>
#include <snappy-sinksource.h>
#include "crc32c.h"
#include "EncodeStream.h"
#include "KafkaMessage.h"
namespace protocol

View File

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

View File

@@ -21,7 +21,6 @@
#include <string.h>
#include <sstream>
#include <utility>
#include "EncodeStream.h"
#include "RedisMessage.h"
namespace protocol

View File

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