This commit is contained in:
Erik Johnston 2017-11-16 17:08:51 +00:00
parent 6c379f7d13
commit 9646941b06

View file

@ -70,6 +70,8 @@ func getTimeout(timeoutMS string) time.Duration {
return time.Duration(i) * time.Millisecond
}
// getSyncStreamPosition tries to pass a string taken from the API to a stream
// position. If the string is empty then (nil, nil) is returned.
func getSyncStreamPosition(since string) (*types.StreamPosition, error) {
if since == "" {
return nil, nil