#1877 closed defect

SFTP: use new eventual utilities from deferredutil — at Version 1

Reported by: davidsarah Owned by: davidsarah
Priority: minor Milestone: 1.15.0
Component: code-frontend-ftp-sftp Version: 1.9.2
Keywords: sftp deferred eventual cloud-backend leasedb easy cleanup Cc: zooko
Launchpad Bug:

Description (last modified by davidsarah)

The cloud backend + leasedb merge adds several deferred utilities: https://github.com/davidsarah/tahoe-lafs/commit/7671b3e33f0c91e764fb869175ff.

eventually_callback and eventually_errback were modelled on the versions already in sftpd.py, with an error-reporting improvement. eventual_chain is an abstraction of the pattern

source.addCallbacks(eventually_callback(target), eventually_errback(target))

which is used twice in sftpd.py. So we should change sftpd to use these versions, once the cloud backend + leasedb merge has landed.

Change History (1)

comment:1 Changed at 2012-11-24T19:41:51Z by davidsarah

  • Description modified (diff)
  • Status changed from new to assigned
Note: See TracTickets for help on using tickets.