mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 01:11:35 +00:00
call json.dump on request
This commit is contained in:
parent
7abbf329b6
commit
603caf228f
1 changed files with 2 additions and 2 deletions
|
@ -135,13 +135,13 @@ class NetworkProxy(threading.Thread):
|
|||
ids = []
|
||||
for m in messages:
|
||||
method, params = m
|
||||
request = json.dumps( { 'id':self.message_id, 'method':method, 'params':params } )
|
||||
request = { 'id':self.message_id, 'method':method, 'params':params }
|
||||
self.unanswered_requests[self.message_id] = method, params, callback
|
||||
ids.append(self.message_id)
|
||||
if self.debug:
|
||||
print_error("-->", request)
|
||||
self.message_id += 1
|
||||
out += request + '\n'
|
||||
out += json.dumps(request) + '\n'
|
||||
while out:
|
||||
sent = self.socket.send( out )
|
||||
out = out[sent:]
|
||||
|
|
Loading…
Add table
Reference in a new issue