Skip to content

Commit

Permalink
Sby (#115)
Browse files Browse the repository at this point in the history
* update example

* update ReadDataAction
  • Loading branch information
AstaFrode authored Jul 31, 2024
1 parent 1597062 commit 2954fc1
Show file tree
Hide file tree
Showing 17 changed files with 520 additions and 554 deletions.
2 changes: 1 addition & 1 deletion core/online.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (e *protocols) OnlineAction(id peer.ID) error {
}
return nil
case <-timeout.C:
return errors.New(ERR_RespTimeOut)
return errors.New(ERR_TimeOut)
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
type Protocol interface {
WriteFileAction(id peer.ID, roothash, path string) error
ReadFileAction(id peer.ID, roothash, datahash, path string, size int64) error
ReadDataAction(id peer.ID, roothash, datahash, path string, size int64) error
ReadDataAction(id peer.ID, name, savepath string, size int64) error
ReadDataStatAction(id peer.ID, roothash string, datahash string) (uint64, error)
OnlineAction(id peer.ID) error
}
Expand Down
Loading

0 comments on commit 2954fc1

Please sign in to comment.