Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
489e4f2d
Commit
489e4f2d
authored
Apr 26, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
9d575887
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
wcfs/wcfs.go
wcfs/wcfs.go
+2
-2
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+2
-2
No files found.
wcfs/wcfs.go
View file @
489e4f2d
...
...
@@ -1502,7 +1502,7 @@ func (wlink *WatchLink) _serveRX() (err error) {
return
err
}
fmt
.
Printf
(
"S: w
atch: rx: %q
\n
"
,
l
)
fmt
.
Printf
(
"S: w
link %d: rx: %q
\n
"
,
wlink
.
id
,
l
)
stream
,
msg
,
err
:=
parseWatchFrame
(
l
)
if
err
!=
nil
{
...
...
@@ -1605,7 +1605,7 @@ func (wlink *WatchLink) send(ctx context.Context, stream uint64, msg string) err
// XXX timeout write on ctx cancel
pkt
:=
[]
byte
(
fmt
.
Sprintf
(
"%d %s
\n
"
,
stream
,
msg
))
fmt
.
Printf
(
"S: w
atch: tx: %q
\n
"
,
pkt
)
fmt
.
Printf
(
"S: w
link %d: tx: %q
\n
"
,
wlink
.
id
,
pkt
)
_
,
err
:=
wlink
.
sk
.
Write
(
pkt
)
if
err
!=
nil
{
return
err
...
...
wcfs/wcfs_test.py
View file @
489e4f2d
...
...
@@ -415,7 +415,7 @@ class tWatch:
defer
(
t
.
_serveDone
.
close
)
while
1
:
l
=
t
.
wrx
.
readline
()
print
(
'C: watch: rx: %r'
%
l
)
print
(
'C: watch
: rx: %r'
%
l
)
if
len
(
l
)
==
0
:
break
# closed
...
...
@@ -443,7 +443,7 @@ class tWatch:
assert
'
\
n
'
not
in
msg
with
t
.
_txmu
:
pkt
=
b"%d %s
\
n
"
%
(
stream
,
msg
)
print
(
'C: watch: tx: %r'
%
pkt
)
print
(
'C: watch
: tx: %r'
%
pkt
)
t
.
wtx
.
write
(
pkt
)
t
.
wtx
.
flush
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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