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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
dac44ea0
Commit
dac44ea0
authored
Apr 23, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
66dc4f18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
wcfs/wcfs.go
wcfs/wcfs.go
+4
-4
No files found.
wcfs/wcfs.go
View file @
dac44ea0
...
...
@@ -1460,6 +1460,8 @@ func (wlink *WatchLink) _serveRX() (err error) {
// XXX close .sk on error/wcfs stopping
ctx
:=
context
.
TODO
()
// XXX ctx = ? -> ctx of wcfs running
// XXX write to peer if it was logical error on client side
// XXX on which stream? -1?
...
...
@@ -1492,7 +1494,7 @@ func (wlink *WatchLink) _serveRX() (err error) {
}
// client-initiated watch request
err
=
wlink
.
handleWatch
(
stream
,
msg
)
err
=
wlink
.
handleWatch
(
ctx
,
stream
,
msg
)
if
err
!=
nil
{
panic
(
err
)
// XXX
}
...
...
@@ -1502,7 +1504,7 @@ func (wlink *WatchLink) _serveRX() (err error) {
// handleWatch handles watch request from client.
//
// returned error comes without full error prefix.
func
(
wlink
*
WatchLink
)
handleWatch
(
stream
uint64
,
msg
string
)
(
err
error
)
{
func
(
wlink
*
WatchLink
)
handleWatch
(
ctx
context
.
Context
,
stream
uint64
,
msg
string
)
(
err
error
)
{
defer
xerr
.
Contextf
(
&
err
,
"%d"
,
stream
)
foid
,
at
,
err
:=
parseWatch
(
msg
)
...
...
@@ -1510,8 +1512,6 @@ func (wlink *WatchLink) handleWatch(stream uint64, msg string) (err error) {
return
err
}
ctx
:=
context
.
TODO
()
// XXX ctx = ?
fmt
.
Printf
(
"S: watch: AAA
\n
"
)
err
=
wlink
.
setupWatch
(
ctx
,
foid
,
at
)
...
...
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