Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
2f69e47b
Commit
2f69e47b
authored
Jul 06, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
198fab88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
go/zodb/zodbtools/watch.go
go/zodb/zodbtools/watch.go
+13
-11
No files found.
go/zodb/zodbtools/watch.go
View file @
2f69e47b
// Copyright (C) 2019 Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
// Copyright (C) 2019
-2020
Nexedi SA and Contributors.
//
Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
// it under the terms of the GNU General Public License version 3, or (at your
...
...
@@ -152,21 +152,23 @@ func watchMain(argv []string) {
}
zurl
:=
argv
[
0
]
ctx
:=
context
.
Background
()
err
:=
watchMain_
(
context
.
Background
(),
zurl
,
verbose
)
if
err
!=
nil
{
prog
.
Fatal
(
err
)
}
}
func
watchMain_
(
ctx
context
.
Context
,
zurl
string
,
verbose
bool
)
(
err
error
)
{
stor
,
err
:=
zodb
.
Open
(
ctx
,
zurl
,
&
zodb
.
OpenOptions
{
ReadOnly
:
true
})
if
err
!=
nil
{
prog
.
Fatal
(
err
)
return
err
}
defer
func
()
{
err
:=
stor
.
Close
()
if
err
!
=
nil
{
prog
.
Fatal
(
err
)
err
2
:=
stor
.
Close
()
if
err
=
=
nil
{
err
=
err2
}
}()
err
=
Watch
(
ctx
,
stor
,
os
.
Stdout
,
verbose
)
if
err
!=
nil
{
prog
.
Fatal
(
err
)
}
return
Watch
(
ctx
,
stor
,
os
.
Stdout
,
verbose
)
}
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