Created
July 19, 2015 04:31
-
-
Save soheilhy/90181261fbb0e27bb9d5 to your computer and use it in GitHub Desktop.
DeQHandler.Map
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func (h DeQHandler) Map(msg beehive.Msg, | |
ctx beehive.MapContext) beehive.MappedCells { | |
// Send the Deque message to the bee that owns the Queue's entry in | |
// the active and the dequed dictionaries. | |
q := string(msg.Data().(Deque).Queue) | |
return beehive.MappedCells{{active, q}, {dequed, q}} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment