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):
log.info('Starting publish for %s', name)
def _show_result():
log.info("Success! Published %s --> lbry://%s txid: %s nout: %d",
self.file_name, self.publish_name, self.txid, self.nout)
out = {}
out['nout'] = self.nout
out['txid'] = self.txid
out['claim_id'] = self.claim_id
out['fee'] = self.fee
return defer.succeed(out)
log.info(
"Success! Published %s --> lbry://%s txid: %s nout: %d",
self.file_name, self.publish_name, self.txid, self.nout
)
return defer.succeed({
'nout': self.nout,
'txid': self.txid,
'claim_id': self.claim_id,
'fee': self.fee,
})
self.publish_name = name
self.file_path = file_path