Skip to content

Commit 8db77cc

Browse files
use -1 if subscriber returns no data on index
1 parent 08b375e commit 8db77cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pytrickle/subscriber.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ async def preconnect(self) -> Optional[aiohttp.ClientResponse]:
7878

7979
if resp.status == 470:
8080
# Channel exists but no data at this index, so reset
81-
idx = resp.headers.get('Lp-Trickle-Latest') or '-1'
81+
#idx = resp.headers.get('Lp-Trickle-Latest') or '-1'
82+
idx = -1
8283
url = f"{self.base_url}/{idx}"
8384
logger.info(f"Trickle sub resetting index to leading edge {url}")
8485
resp.release()

0 commit comments

Comments
 (0)