Skip to content

Instantly share code, notes, and snippets.

View dmexe's full-sized avatar

Dmitry Galinsky dmexe

View GitHub Profile
/// It converts an inner stream into a future, which
/// pick up a first ok result from the stream and stop
/// or if a stream ended without any successful result return
/// a last recorded error from the stream.
///
/// Usage:
/// ```
/// let stream = iter_ok(vec![1,2,3]);
/// let future = stream.next_ok_or_last_err();
/// ```

Publisher

When published an import to audio2 for processing

{
  "message": "Successfully published ImportCreatedOrUpdated(123e4567-e89b-12d3-a456-426614174000) to publisher-v1-json-events[2]/14788",
  "event.kind": "event",
  "event.created": "2016-05-23T08:05:34.853Z",
  "event.code": "publisher:import_created_or_updated",