minor nits

This commit is contained in:
Alex Grintsvayg 2017-01-13 12:19:26 -05:00 committed by Alex Grintsvayg
parent 9e7b69f4a0
commit 8277df1034
3 changed files with 13 additions and 10 deletions

View file

@ -40,15 +40,18 @@ class Publisher(object):
def start(self, name, file_path, bid, metadata): def start(self, name, file_path, bid, metadata):
log.info('Starting publish for %s', name) log.info('Starting publish for %s', name)
def _show_result(): def _show_result():
log.info("Success! Published %s --> lbry://%s txid: %s nout: %d", log.info(
self.file_name, self.publish_name, self.txid, self.nout) "Success! Published %s --> lbry://%s txid: %s nout: %d",
out = {} self.file_name, self.publish_name, self.txid, self.nout
out['nout'] = self.nout )
out['txid'] = self.txid return defer.succeed({
out['claim_id'] = self.claim_id 'nout': self.nout,
out['fee'] = self.fee 'txid': self.txid,
return defer.succeed(out) 'claim_id': self.claim_id,
'fee': self.fee,
})
self.publish_name = name self.publish_name = name
self.file_path = file_path self.file_path = file_path