Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jiří Kalvoda
jr
Commits
a99caedf
Commit
a99caedf
authored
1 year ago
by
Jiří Kalvoda
Browse files
Options
Downloads
Patches
Plain Diff
Fixes
parent
d3eb6e30
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
prog/download_server.py
+2
-2
2 additions, 2 deletions
prog/download_server.py
prog/server.py
+1
-1
1 addition, 1 deletion
prog/server.py
with
3 additions
and
3 deletions
prog/download_server.py
+
2
−
2
View file @
a99caedf
...
...
@@ -93,7 +93,7 @@ class DownloadServer(communication.FuncCaller):
if
len
(
last_data
):
return
last_data
[
-
1
]
else
:
return
wait_data
(
False
)
return
await
wait_data
(
False
)
@communication.server_exec
()
async
def
wait_next_data
(
self
,
last_dt
:
datetime
.
datetime
,
preferably_compressed
:
bool
=
True
):
...
...
@@ -107,7 +107,7 @@ class DownloadServer(communication.FuncCaller):
for
dt
,
data
in
last_data
:
if
dt
>
last_dt
:
return
dt
,
data
return
wait_data
(
preferably_compressed
)
return
await
wait_data
(
preferably_compressed
)
async
def
client_connected
(
reader
,
writer
):
...
...
This diff is collapsed.
Click to expand it.
prog/server.py
+
1
−
1
View file @
a99caedf
...
...
@@ -3,6 +3,6 @@ import asyncio
async
def
main
():
s
=
await
communication
.
StdInOutSocket
().
connect
()
await
communication
.
Download
Server
(
s
,
is_server
=
True
).
_server_
.
run
()
await
communication
.
Main
Server
(
s
,
is_server
=
True
).
_server_
.
run
()
asyncio
.
run
(
main
())
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment