Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-dfs
csst-dfs-api-cluster
Commits
9dd15470
Commit
9dd15470
authored
3 years ago
by
Wei Shoulin
Browse files
Options
Download
Email Patches
Plain Diff
log read data
parent
e25b55f6
main
master
1.0.1
v0.0.4
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
csst_dfs_api_cluster/msc/level1.py
+1
-0
csst_dfs_api_cluster/msc/level1.py
with
1 addition
and
0 deletions
+1
-0
csst_dfs_api_cluster/msc/level1.py
+
1
-
0
View file @
9dd15470
...
...
@@ -159,6 +159,7 @@ class Level1DataApi(object):
with
open
(
rec
.
file_path
,
'rb'
)
as
f
:
while
True
:
data
=
f
.
read
(
UPLOAD_CHUNK_SIZE
)
print
(
"read data len: %d"
%
(
len
(
data
),))
if
not
data
:
break
yield
level1_pb2
.
WriteLevel1Req
(
record
=
rec
,
data
=
data
)
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets