func (c *StreamRegistry) Deregister(handlerID uint64) {
	foundAt := -1
	for i, s := range c.Streams {
		if s.HandlerID == handlerID {
			foundAt = i
			break
		}
	}

	if foundAt != -1 {
		c.Streams = append(c.Streams[:foundAt], c.Streams[foundAt+1:]...)
	}
}
// Deregister deregisters stream from the registry
Deregister deregisters stream from the registry
// Deregister deregisters stream from the registry
func (c *StreamRegistry) Deregister(handlerID uint64) {
	foundAt := -1
	for i, s := range c.Streams {
		if s.HandlerID == handlerID {
			foundAt = i
			break
		}
	}
	if foundAt != -1 {
		c.Streams = append(c.Streams[:foundAt], c.Streams[foundAt+1:]...)
	}
}
func ( c * StreamRegistry ) Deregister ( handlerID uint64 ) { foundAt := - 1 for i , s := range c . Streams { if s . HandlerID == handlerID { foundAt = i break } } if foundAt != - 1 { c . Streams = append ( c . Streams [ : foundAt ] , c . Streams [ foundAt + 1 : ] ... ) } }
Deregister deregisters stream from the registry
Deregister deregisters stream from the registry