Skip to content

Commit 2954fc1

Browse files
authored
Sby (#115)
* update example * update ReadDataAction
1 parent 1597062 commit 2954fc1

File tree

17 files changed

+520
-554
lines changed

17 files changed

+520
-554
lines changed

core/online.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func (e *protocols) OnlineAction(id peer.ID) error {
9595
}
9696
return nil
9797
case <-timeout.C:
98-
return errors.New(ERR_RespTimeOut)
98+
return errors.New(ERR_TimeOut)
9999
}
100100
}
101101

core/protocol.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
type Protocol interface {
1515
WriteFileAction(id peer.ID, roothash, path string) error
1616
ReadFileAction(id peer.ID, roothash, datahash, path string, size int64) error
17-
ReadDataAction(id peer.ID, roothash, datahash, path string, size int64) error
17+
ReadDataAction(id peer.ID, name, savepath string, size int64) error
1818
ReadDataStatAction(id peer.ID, roothash string, datahash string) (uint64, error)
1919
OnlineAction(id peer.ID) error
2020
}

0 commit comments

Comments
 (0)