Skip to content

Instantly share code, notes, and snippets.

@soheilhy
Created July 19, 2015 04:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soheilhy/90181261fbb0e27bb9d5 to your computer and use it in GitHub Desktop.
Save soheilhy/90181261fbb0e27bb9d5 to your computer and use it in GitHub Desktop.
DeQHandler.Map
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