Skip to content

Commit

Permalink
feat(ci): remove code ;)
Browse files Browse the repository at this point in the history
  • Loading branch information
rande committed Jul 16, 2016
1 parent 78d35c3 commit 9d4415d
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions service.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
package pkgmirror

import (
"sync"

"github.com/rande/goapp"
)

Expand All @@ -22,19 +20,8 @@ type MirrorService interface {
Serve(state *goapp.GoroutineState) error
}

type ServiceRegistry struct {
Services map[string]MirrorService
lock *sync.Mutex
}

func (sr *ServiceRegistry) Add(name string, s MirrorService) {
sr.lock.Lock()
sr.Services[name] = s
sr.lock.Unlock()
}

type State struct {
Id string
Status int
Message string
}
Id string
Status int
Message string
}

0 comments on commit 9d4415d

Please sign in to comment.