#2780 closed task (fixed)

use OneShotObserverList on magic-folder branch

Reported by: warner Owned by: daira
Priority: normal Milestone: undecided
Component: code Version: 1.11.0
Keywords: Cc:
Launchpad Bug:

Description

From today's devchat: refactor StorageFarmBroker on the magic-folder branch to use util.observer.OneShotObserverList instead of passing in a Deferred.

Add a method named when_first_connected(), which returns a Deferred that fires when the broker first achieves a minimum threshold of connected storage servers. If the method is called after that first transition, it will return defer.succeed().

Change History (2)

comment:1 Changed at 2016-07-05T16:16:03Z by meejah

This is already in master, but named a little differently than here (when_connected_enough()).

comment:2 Changed at 2016-07-05T16:16:21Z by meejah

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.