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
cc216b8c
Commit
cc216b8c
authored
Sep 09, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
9d1dc98b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
wcfs/wcfs.go
wcfs/wcfs.go
+10
-3
No files found.
wcfs/wcfs.go
View file @
cc216b8c
...
...
@@ -1349,6 +1349,14 @@ retry:
//
// (see "7.2) for all registered client@at watchers ...")
const
_traceIso
=
true
func
traceIso
(
format
string
,
argv
...
interface
{})
{
if
!
_traceIso
{
return
}
log
.
InfoDepth
(
1
,
fmt
.
Sprintf
(
format
,
argv
...
))
}
// pin makes sure that file[blk] on client side is the same as of @rev state.
//
// rev = zodb.TidMax means @head; otherwise rev must be ≤ w.at and there must
...
...
@@ -1833,8 +1841,7 @@ func (wlink *WatchLink) _serve() (err error) {
}
return
err
}
//fmt.Printf("S: wlink%d: rx: %q\n", wlink.id, l)
traceIso
(
"S: wlink%d: rx: %q
\n
"
,
wlink
.
id
,
l
)
stream
,
msg
,
err
:=
parseWatchFrame
(
l
)
if
err
!=
nil
{
...
...
@@ -1937,7 +1944,7 @@ func (wlink *WatchLink) send(ctx context.Context, stream uint64, msg string) err
defer
wlink
.
txMu
.
Unlock
()
pkt
:=
[]
byte
(
fmt
.
Sprintf
(
"%d %s
\n
"
,
stream
,
msg
))
//fmt.Printf
("S: wlink%d: tx: %q\n", wlink.id, pkt)
traceIso
(
"S: wlink%d: tx: %q
\n
"
,
wlink
.
id
,
pkt
)
_
,
err
:=
wlink
.
sk
.
Write
(
ctx
,
pkt
)
if
err
!=
nil
{
return
err
...
...
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