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
2add8ee1
Commit
2add8ee1
authored
1 year ago
by
Jiří Kalvoda
Browse files
Options
Downloads
Patches
Plain Diff
Fix typo
parent
7aa506d5
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
prog/communication.py
+3
-3
3 additions, 3 deletions
prog/communication.py
prog/download_server.py
+1
-1
1 addition, 1 deletion
prog/download_server.py
prog/preprocess.py
+1
-1
1 addition, 1 deletion
prog/preprocess.py
with
5 additions
and
5 deletions
prog/communication.py
+
3
−
3
View file @
2add8ee1
...
...
@@ -55,7 +55,7 @@ class SSHRunSocket(Socket):
# eprint("READ END", r)
return
r
class
As
i
ncioStreamSocket
(
Socket
):
class
As
y
ncioStreamSocket
(
Socket
):
async
def
connect
(
self
,
reader
,
writer
):
self
.
reader
=
reader
self
.
writer
=
writer
...
...
@@ -70,12 +70,12 @@ class AsincioStreamSocket(Socket):
# eprint("STDIN READ END", r)
return
r
class
StdInOutSocket
(
As
i
ncioStreamSocket
):
class
StdInOutSocket
(
As
y
ncioStreamSocket
):
async
def
connect
(
self
):
self
.
reader
,
self
.
writer
=
await
connect_stdin_stdout
()
return
self
class
UnixSocket
(
As
i
ncioStreamSocket
):
class
UnixSocket
(
As
y
ncioStreamSocket
):
async
def
connect
(
self
,
path
):
self
.
reader
,
self
.
writer
=
await
asyncio
.
open_unix_connection
(
path
)
return
self
...
...
This diff is collapsed.
Click to expand it.
prog/download_server.py
+
1
−
1
View file @
2add8ee1
...
...
@@ -112,7 +112,7 @@ class DownloadServer(communication.FuncCaller):
async
def
client_connected
(
reader
,
writer
):
await
catch_all
(
DownloadServer
(
await
communication
.
As
i
ncioStreamSocket
().
connect
(
reader
,
writer
),
is_server
=
True
).
_server_
.
run
())
await
catch_all
(
DownloadServer
(
await
communication
.
As
y
ncioStreamSocket
().
connect
(
reader
,
writer
),
is_server
=
True
).
_server_
.
run
())
async
def
main
():
global
caio_ctx
...
...
This diff is collapsed.
Click to expand it.
prog/preprocess.py
+
1
−
1
View file @
2add8ee1
...
...
@@ -167,7 +167,7 @@ async def main():
loaded_timestamps
=
[]
async
def
client_connected
(
reader
,
writer
):
s
=
PreprocessServer
(
await
communication
.
As
i
ncioStreamSocket
().
connect
(
reader
,
writer
),
is_server
=
True
)
s
=
PreprocessServer
(
await
communication
.
As
y
ncioStreamSocket
().
connect
(
reader
,
writer
),
is_server
=
True
)
s
.
ths
=
ths
s
.
loaded_timestamps
=
loaded_timestamps
await
catch_all
(
s
.
_server_
.
run
())
...
...
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