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

Commit

Permalink
Improve the comments: modify the words spelling mistakes
Browse files Browse the repository at this point in the history
Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
  • Loading branch information
yuxiaobo96 committed Sep 26, 2019
1 parent 71d3b08 commit b600e5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/dfdaemon/app/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func Execute() {

// getConfigFromViper returns dfdaemon config from the given viper instance
func getConfigFromViper(cmd *cobra.Command, v *viper.Viper) (*config.Properties, error) {
// override supernodes in config file if --node is sepecified in cli.
// override supernodes in config file if --node is specified in cli.
// use default value if no supernodes is configured in config file
if cmd.Flags().Lookup("node").Changed ||
len(v.GetStringSlice("supernodes")) == 0 {
Expand Down
2 changes: 1 addition & 1 deletion dfget/core/uploader/uploader.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func WaitForShutdown() {
}
}

// LaunchPeerServer launchs a server to send piece data.
// LaunchPeerServer launches a server to send piece data.
func LaunchPeerServer(cfg *config.Config) (int, error) {
// avoid data race caused by reading and writing variable 'p2p'
// in different routines
Expand Down

0 comments on commit b600e5d

Please sign in to comment.