streamingfast / substreams

Powerful Blockchain streaming data engine, based on StreamingFast Firehose technology.
Apache License 2.0
164 stars 45 forks source link

`substreams` CLI `Ctrl+C` seems broken when backprocessing #106

Closed maoueh closed 1 year ago

maoueh commented 1 year ago

If you checkout feature/substreams-bug-106 from https://github.com/streamingfast/substreams-template and you do:

ENDPOINT=<unstable-endpoint> make stream

Then you wait for this to be printed:

...
Connected - Progress messages received: 0 (0/sec)
Connected - Progress messages received: X (N/sec)
(hit 'm' to switch mode)

TraceID: b33d226f8364596d17e36a53f79b5ef0

If you hit Ctrl-C at this point, the UI is stuck. Also m does not work as mentioned by the output, which could be related to same problem.

maoueh commented 1 year ago

If I remove printing of TraceID: XXX, at least the double connected message disappear (but Ctrl-C still broken)

maoueh commented 1 year ago

Seems this existed in latest release also.