<commit_before>#ifndef _UPSTREAM_H
#define _UPSTREAM_H

#include "core.h"
#include "util.h"
#include "array.h"
#include "_string.h"
#include "config.h"

#include <uv.h>

#define UPSTREAM_DEFAULT_WEIGHT 10
#define UPSTREAM_DEFAULT_POOL_LENGTH 64
#define UPSTREAM_DEFAULT_SCHEDULE up_rr

#define upstream_pool_is_null(up)  ((up)->pool == NULL)

enum upstream_schedule {
    up_rr,         /* round-robin */
    up_wrr,        /* weighted round-robin*/
    up_random,     /* raondom schedule */
};

struct upstream  {
    rps_addr_t  server;
    rps_proto_t proto;
    rps_str_t   uname;
    rps_str_t   passwd;
    uint16_t    weight;
    uint32_t    count;
};

struct upstream_pool {
    rps_array_t             *pool;
    rps_proto_t             proto;
    rps_str_t               rediskey;
    struct config_redis     *cr;
    uint32_t                index;
    uv_rwlock_t             rwlock;
};
<commit_msg>Remove unused marco<commit_after>#ifndef _UPSTREAM_H
#define _UPSTREAM_H

#include "core.h"
#include "util.h"
#include "array.h"
#include "_string.h"
#include "config.h"

#include <uv.h>

#define UPSTREAM_DEFAULT_WEIGHT 10
#define UPSTREAM_DEFAULT_POOL_LENGTH 64
#define UPSTREAM_DEFAULT_SCHEDULE up_rr

enum upstream_schedule {
    up_rr,         /* round-robin */
    up_wrr,        /* weighted round-robin*/
    up_random,     /* raondom schedule */
};

struct upstream  {
    rps_addr_t  server;
    rps_proto_t proto;
    rps_str_t   uname;
    rps_str_t   passwd;
    uint16_t    weight;
    uint32_t    count;
};

struct upstream_pool {
    rps_array_t             *pool;
    rps_proto_t             proto;
    rps_str_t               rediskey;
    struct config_redis     *cr;
    uint32_t                index;
    uv_rwlock_t             rwlock;
};

{'fraction_non_alphanumeric': 0.08762012436404748, 'fraction_numerical': 0.011305822498586773, 'mean_word_length': 2.397312859884837, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3046179', 'n_tokens_mistral': 677, 'n_tokens_neox': 649, 'n_words': 134}