Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-unixfs
Commits
d05bbb83
Commit
d05bbb83
authored
Jan 22, 2015
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add async
parent
9239a1d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cmd/ipfswatch/main.go
cmd/ipfswatch/main.go
+2
-2
No files found.
cmd/ipfswatch/main.go
View file @
d05bbb83
...
...
@@ -118,7 +118,7 @@ func run(ipfsPath, watchPath string) error {
addTree
(
watcher
,
e
.
Name
)
}
}
func
(
)
{
proc
.
Go
(
func
(
p
process
.
Process
)
{
file
,
err
:=
os
.
Open
(
e
.
Name
)
if
err
!=
nil
{
log
.
Println
(
err
)
...
...
@@ -129,7 +129,7 @@ func run(ipfsPath, watchPath string) error {
log
.
Println
(
err
)
}
log
.
Printf
(
"added %s... key: %s"
,
e
.
Name
,
k
)
}
(
)
})
}
case
err
:=
<-
watcher
.
Errors
:
log
.
Println
(
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