Skip to content

Commit

Permalink
termite: hide Mirror.Shutdown.
Browse files Browse the repository at this point in the history
  • Loading branch information
hanwen committed Aug 25, 2014
1 parent 48c468f commit a6bfd2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions termite/mirror.go
Expand Up @@ -77,11 +77,11 @@ func (m *Mirror) serveRpc() {
done <- 1
}()
<-done
m.Shutdown(true)
m.shutdown(true)
m.worker.DropMirror(m)
}

func (m *Mirror) Shutdown(aggressive bool) {
func (m *Mirror) shutdown(aggressive bool) {
m.fsMutex.Lock()
defer m.fsMutex.Unlock()
m.accepting = false
Expand Down
2 changes: 1 addition & 1 deletion termite/mirrors.go
Expand Up @@ -88,7 +88,7 @@ func (wm *WorkerMirrors) shutdown(aggressive bool) {
wg.Add(len(mirrors))
for _, m := range mirrors {
go func(m *Mirror) {
m.Shutdown(aggressive)
m.shutdown(aggressive)
wg.Done()
}(m)
}
Expand Down

0 comments on commit a6bfd2b

Please sign in to comment.