kafak发送修正

This commit is contained in:
kf_wuhao 2021-03-31 19:10:17 +08:00
parent b7fa1ee55f
commit 58173a8bf0
2 changed files with 1 additions and 1 deletions

0
models/__init__.py Normal file
View File

View File

@ -10,7 +10,7 @@ class Config:
SALT = '0r4X00mH' SALT = '0r4X00mH'
KAFKA_CONF = { KAFKA_CONF = {
'bootstrap_servers': ["192.168.0.30:9092", "192.168.0.71:9092", "192.168.0.229:9092"], 'bootstrap_servers': ["192.168.0.30:9092", "192.168.0.71:9092", "192.168.0.229:9092"],
'value_serializer': lambda v: json.dumps(v).encode('utf-8'), 'value_serializer': lambda v: v.encode('utf-8'),
} }