diff --git a/ui (gen4)/features/peer.js b/ui (gen4)/features/peer.js index 2fb13d8a..b93b33c0 100755 --- a/ui (gen4)/features/peer.js +++ b/ui (gen4)/features/peer.js @@ -149,6 +149,17 @@ function(protocol, func){ // - rpc (???) // - mq (???) // - ... +// XXX there seem to be two ways to go with peers: +// - proxy a set of actions... +// + simple +// - non-transparent in most cases... +// ...considering that all peer calls are async, making this +// transparent for actions that do not return a promise +// will be problematic... +// - custom actions that communicate with a peer... +// + no need to be compatible with existing actions +// - manual... +// Need to play around with use-cases and see what fits best... // XXX should this do "sync"??? // XXX should the couch api be implemented over this of independently??? var PeerActions = actions.Actions({ @@ -228,17 +239,6 @@ var PeerActions = actions.Actions({ peerList: ['- System/Peer/', function(){ return Object.keys(this.__peers || {}) }], - // XXX there seem to be two ways to go with peers: - // - proxy a set of actions... - // + simple - // - non-transparent in most cases... - // ...considering that all peer calls are async, making this - // transparent for actions that do not return a promise - // will be problematic... - // - custom actions that communicate with a peer... - // + no need to be compatible with existing actions - // - manual... - // Need to play around with use-cases and see what fits best... // XXX do we need these??? // XXX format spec!!! peerSpec: ['- System/Peer/',