Skip to content

Commit 77b8301

Browse files
committed
Merge pull request dpkp#29 from mahendra/threading
Fix auto-commit issues with multi-threading
2 parents 40506c2 + 437889d commit 77b8301

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kafka/conn.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import logging
22
import socket
33
import struct
4+
from threading import local
45

56
log = logging.getLogger("kafka")
67

7-
class KafkaConnection(object):
8+
class KafkaConnection(local):
89
"""
910
A socket connection to a single Kafka broker
1011

0 commit comments

Comments
 (0)