~ps-jenkins/ubuntu-push/ubuntu-vivid-proposed

« back to all changes in this revision

Viewing changes to client/service/postal.go

  • Committer: Roberto Alsina
  • Date: 2014-10-24 14:05:51 UTC
  • mfrom: (91.179.41 automatic)
  • mto: This revision was merged to the branch mainline in revision 136.
  • Revision ID: roberto.alsina@canonical.com-20141024140551-tsdz3xggo2rbwlqj
MergeĀ fromĀ automatic

Show diffs side-by-side

added added

removed removed

Lines of Context:
141
141
 
142
142
// Start() dials the bus, grab the name, and listens for method calls.
143
143
func (svc *PostalService) Start() error {
144
 
        err := svc.DBusService.Start(bus.DispatchMap{
 
144
        return svc.DBusService.Start(bus.DispatchMap{
145
145
                "PopAll":          svc.popAll,
146
146
                "Post":            svc.post,
147
147
                "ListPersistent":  svc.listPersistent,
148
148
                "ClearPersistent": svc.clearPersistent,
149
149
                "SetCounter":      svc.setCounter,
150
 
        }, PostalServiceBusAddress)
151
 
        if err != nil {
152
 
                return err
153
 
        }
 
150
        }, PostalServiceBusAddress, svc.init)
 
151
}
 
152
 
 
153
func (svc *PostalService) init() error {
154
154
        actionsCh, err := svc.takeTheBus()
155
155
        if err != nil {
156
156
                return err