Commit 1cf91dcc authored by arthur-zzz's avatar arthur-zzz
Browse files

Update services/chwriter/channel.py

parent 19848b80
Pipeline #32451 passed with stages
in 21 minutes and 39 seconds
...@@ -36,13 +36,7 @@ class Channel(object): ...@@ -36,13 +36,7 @@ class Channel(object):
self.last_updated = perf_counter() self.last_updated = perf_counter()
self.last_flushed = perf_counter() self.last_flushed = perf_counter()
self.flushing = False self.flushing = False
self.url = "http://%s/?user=%s&password=%s&database=%s&query=%s" % ( self.url = "http://%s/?database=%s&query=%s" % (address, db, self.encoded_sql)
address,
config.clickhouse.rw_user,
config.clickhouse.rw_password or "",
db,
self.encoded_sql,
)
def feed(self, data: bytes): def feed(self, data: bytes):
n = data.count(b"\n") n = data.count(b"\n")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment