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
8df86e84
Commit
8df86e84
authored
Apr 23, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
b4857f66
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
wcfs/misc.go
wcfs/misc.go
+2
-2
wcfs/wcfs.go
wcfs/wcfs.go
+1
-1
No files found.
wcfs/misc.go
View file @
8df86e84
...
...
@@ -622,7 +622,8 @@ func parseWatchFrame(line string) (stream uint64, msg string, err error) {
return
0
,
""
,
fmt
.
Errorf
(
"invalid stream"
)
}
return
stream
,
line
[
sp
+
1
:
],
nil
msg
=
strings
.
TrimSuffix
(
line
[
sp
+
1
:
],
"
\n
"
)
return
stream
,
msg
,
nil
}
// parseWatch parses watch request wcfs received over /head/watch.
...
...
@@ -637,7 +638,6 @@ func parseWatch(msg string) (oid zodb.Oid, at zodb.Tid, err error) {
}
}()
msg
=
strings
.
TrimSuffix
(
msg
,
"
\n
"
)
if
!
strings
.
HasPrefix
(
msg
,
"watch "
)
{
return
0
,
0
,
fmt
.
Errorf
(
"not a watch request"
)
}
...
...
wcfs/wcfs.go
View file @
8df86e84
...
...
@@ -1416,7 +1416,7 @@ func (wlink *WatchLink) setupWatch(ctx context.Context, foid zodb.Oid, at zodb.T
}
err
=
wg
.
Wait
()
if
err
!=
nil
{
panic
(
err
)
// XXX
return
err
}
return
nil
...
...
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