Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
arthur-zzz
noc
Commits
1cf91dcc
Commit
1cf91dcc
authored
Jul 02, 2021
by
arthur-zzz
Browse files
Update services/chwriter/channel.py
parent
19848b80
Pipeline
#32451
passed with stages
in 21 minutes and 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
services/chwriter/channel.py
View file @
1cf91dcc
...
...
@@ -36,13 +36,7 @@ class Channel(object):
self
.
last_updated
=
perf_counter
()
self
.
last_flushed
=
perf_counter
()
self
.
flushing
=
False
self
.
url
=
"http://%s/?user=%s&password=%s&database=%s&query=%s"
%
(
address
,
config
.
clickhouse
.
rw_user
,
config
.
clickhouse
.
rw_password
or
""
,
db
,
self
.
encoded_sql
,
)
self
.
url
=
"http://%s/?database=%s&query=%s"
%
(
address
,
db
,
self
.
encoded_sql
)
def
feed
(
self
,
data
:
bytes
):
n
=
data
.
count
(
b
"
\n
"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment