created "Node"

This commit is contained in:
Jae Kwon
2014-07-09 18:33:44 -07:00
parent 237b3dc7ff
commit 1b59caf950
8 changed files with 121 additions and 18 deletions
+3
View File
@@ -49,6 +49,9 @@ func NewSwitch(channels []ChannelDescriptor) *Switch {
return s
}
func (s *Switch) Start() {
}
func (s *Switch) Stop() {
log.Infof("Stopping switch")
if atomic.CompareAndSwapUint32(&s.stopped, 0, 1) {