Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FS-SC
AsapoWorker
Commits
525081c8
Commit
525081c8
authored
Jul 03, 2020
by
Tim Schoof
Browse files
Add substream to metadata
parent
7abf2836
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/AsapoWorker/asapo_receiver.py
View file @
525081c8
...
...
@@ -83,6 +83,8 @@ class SimpleAsapoReceiver:
current_id
=
metadata
[
"_id"
]
log
.
info
(
"Received record with id=%i."
,
current_id
)
metadata
[
"substream"
]
=
self
.
substream
return
data
,
metadata
def
get_current_size
(
self
):
...
...
@@ -182,6 +184,9 @@ class SerialAsapoReceiver(SimpleAsapoReceiver):
self
.
expected_id
=
current_id
+
1
self
.
retries
=
0
metadata
[
"substream"
]
=
self
.
substream
return
data
,
metadata
def
_set_marker
(
self
):
...
...
@@ -258,4 +263,6 @@ class SerialAsapoReceiver(SimpleAsapoReceiver):
# ASAP::O sets the last read marker when calling get_last
self
.
need_set_marker
=
True
metadata
[
"substream"
]
=
self
.
substream
return
data
,
metadata
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment