Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sby #115

Merged
merged 2 commits into from
Jul 31, 2024
Merged

Sby #115

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading