Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
Grammatical correction
Browse files Browse the repository at this point in the history
Signed-off-by: yuxiaobo <[email protected]>
  • Loading branch information
yuxiaobo96 committed Sep 19, 2019
1 parent 266923d commit f0dd3fb
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ type APIClient struct {
version string
}

// TLSConfig contains information of tls which users can specify
// TLSConfig contains information of TLS which users can specify
type TLSConfig struct {
CA string `json:"tlscacert,omitempty"`
Cert string `json:"tlscert,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion dfdaemon/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ func handshake(w http.ResponseWriter, config *tls.Config) (net.Conn, error) {
}

// A singleUseListener implements a net.Listener that returns the net.Conn specified
// in c for the first Accept call, and return errors for the subsequent calls.
// in c for the first Accept call, and returns errors for the subsequent calls.
type singleUseListener struct {
c net.Conn
}
Expand Down
14 changes: 7 additions & 7 deletions dfget/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,10 @@ type Config struct {
// Insecure indicates whether skip secure verify when supernode interact with the source.
Insecure bool `json:"insecure,omitempty"`

// ShowBar show progress bar, it's conflict with `--console`.
// ShowBar shows progress bar, it's conflict with `--console`.
ShowBar bool `json:"showBar,omitempty"`

// Console show log on console, it's conflict with `--showbar`.
// Console shows log on console, it's conflict with `--showbar`.
Console bool `json:"console,omitempty"`

// Verbose indicates whether to be verbose.
Expand Down Expand Up @@ -329,16 +329,16 @@ type RuntimeVariable struct {
// Only server port information is stored currently.
MetaPath string

// SystemDataDir specify a default directory to store temporary files.
// SystemDataDir specifies a default directory to store temporary files.
SystemDataDir string

// DataDir specify a directory to store temporary files.
// DataDir specifies a directory to store temporary files.
// For now, the value of `DataDir` always equals `SystemDataDir`,
// and there is no difference between them.
// TODO: If there is insufficient disk space, we should set it to the `TargetDir`.
DataDir string

// RealTarget specify the full target path whose value is equal to the `Output`.
// RealTarget specifies the full target path whose value is equal to the `Output`.
RealTarget string

// TargetDir is the directory of the RealTarget path.
Expand Down Expand Up @@ -368,12 +368,12 @@ type RuntimeVariable struct {
// FileLength the length of the file to download.
FileLength int64

// DataExpireTime specify the caching duration for which
// DataExpireTime specifies the caching duration for which
// cached files keep no accessed by any process.
// After this period, the cached files will be deleted.
DataExpireTime time.Duration

// ServerAliveTime specify the alive duration for which
// ServerAliveTime specifies the alive duration for which
// uploader keeps no accessing by any uploading requests.
// After this period, the uploader will automatically exit.
ServerAliveTime time.Duration
Expand Down
2 changes: 1 addition & 1 deletion dfget/core/downloader/p2p_downloader/p2p_downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ func (p2p *P2PDownloader) pullPieceTask(item *Piece) (
return p2p.pullPieceTask(item)
}

// getPullRate get download rate limit dynamically.
// getPullRate gets download rate limit dynamically.
func (p2p *P2PDownloader) getPullRate(data *types.PullPieceTaskResponseContinueData) {
if time.Since(p2p.pullRateTime).Seconds() < 3 {
return
Expand Down
2 changes: 1 addition & 1 deletion dfget/core/downloader/p2p_downloader/power_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ type PowerClient struct {
// A piece will be putted into this queue after it be downloaded successfully.
clientQueue queue.Queue

// rateLimiter limit the download speed.
// rateLimiter limits the download speed.
rateLimiter *ratelimiter.RateLimiter

// total indicates the total length of the downloaded piece.
Expand Down

0 comments on commit f0dd3fb

Please sign in to comment.