1
This commit is contained in:
parent
baf68b2832
commit
3b3e900930
@ -5,7 +5,7 @@ class Config:
|
|||||||
# ck数据库连接
|
# ck数据库连接
|
||||||
CK_CONFIG = {'host': '139.159.159.3',
|
CK_CONFIG = {'host': '139.159.159.3',
|
||||||
'port': 9654,
|
'port': 9654,
|
||||||
'send_receive_timeout': 30}
|
}
|
||||||
|
|
||||||
# 每个游戏不一样 游戏上报 kafka 主题
|
# 每个游戏不一样 游戏上报 kafka 主题
|
||||||
SUBSCRIBE_TOPIC = 'xiangsu'
|
SUBSCRIBE_TOPIC = 'xiangsu'
|
||||||
|
@ -31,6 +31,9 @@ class Transmitter:
|
|||||||
if (p['ts'] + p['time_out'] <= ts or buffer_size >= p['bulk_max']) and buffer_size > 0:
|
if (p['ts'] + p['time_out'] <= ts or buffer_size >= p['bulk_max']) and buffer_size > 0:
|
||||||
p['ts'] = ts
|
p['ts'] = ts
|
||||||
yield tb, buffer
|
yield tb, buffer
|
||||||
|
elif p['ts'] + p['time_out'] <= ts:
|
||||||
|
# 保持连接
|
||||||
|
self.db_client.execute('select 1')
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def flat_data(data: dict):
|
def flat_data(data: dict):
|
||||||
|
Loading…
Reference in New Issue
Block a user