完善日志系统,修复读取配置文件时的内存泄漏,初步添加熔断机制与指数退避机制
This commit is contained in:
@ -6,6 +6,11 @@ int give_upjobs(indiector *self)
|
||||
{
|
||||
if(self == NULL)
|
||||
{
|
||||
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
int init_indector(indiector *self)
|
||||
{
|
||||
|
||||
}
|
||||
@ -1,5 +1,10 @@
|
||||
#ifndef ERROPROCESS
|
||||
#define EROPROCESS
|
||||
#define ERROPROCESS
|
||||
|
||||
|
||||
#define BASE_INDIECTOR 2
|
||||
#define MAX_index 5
|
||||
#define CIR_TIME 20
|
||||
typedef struct jobs
|
||||
{
|
||||
struct jobs* next;
|
||||
@ -13,8 +18,7 @@ typedef struct indiector
|
||||
int retreat_index;//退避指数
|
||||
jobs *head_job;
|
||||
jobs *rear_job;
|
||||
int (*give_upjobs)(struct indiector *);
|
||||
}indiector;
|
||||
|
||||
int give_upjobs(indiector *self);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user