Adds some guards against the content-type of the ReadResp message to ensure that we don't try to give anything to the library user that can't be decoded.
With the current version of the protobufs (via event_store_db_gpb_protobufs), we decode the trailing stream position messages as:
which fails some pattern matches / function clauses. This pr sets up the necessary function clauses to only allow ReadResps through when they contain events.
closes #54
Adds some guards against the content-type of the ReadResp message to ensure that we don't try to give anything to the library user that can't be decoded.
With the current version of the protobufs (via
event_store_db_gpb_protobufs
), we decode the trailing stream position messages as:which fails some pattern matches / function clauses. This pr sets up the necessary function clauses to only allow ReadResps through when they contain events.