Browse code

Remove duplicated words in daemon files

Signed-off-by: mooncake <xcoder@tenxcloud.com>

mooncake authored on 2018/10/05 22:37:42
Showing 3 changed files
... ...
@@ -236,7 +236,7 @@ func (d *Driver) startServiceVMIfNotRunning(id string, mvdToAdd []hcsshim.Mapped
236 236
 	logrus.Debugf("%s: adding entry to service vm map", title)
237 237
 	svm, exists, err := d.serviceVms.add(id)
238 238
 	if err != nil && err == errVMisTerminating {
239
-		// VM is in the process of terminating. Wait until it's done and and then try again
239
+		// VM is in the process of terminating. Wait until it's done and then try again
240 240
 		logrus.Debugf("%s: VM with current ID still in the process of terminating", title)
241 241
 		if err := svm.getStopError(); err != nil {
242 242
 			logrus.Debugf("%s: VM did not stop successfully: %s", title, err)
... ...
@@ -751,7 +751,7 @@ func (d *Driver) Cleanup() error {
751 751
 
752 752
 	// Note we don't return an error below - it's possible the files
753 753
 	// are locked. However, next time around after the daemon exits,
754
-	// we likely will be able to to cleanup successfully. Instead we log
754
+	// we likely will be able to cleanup successfully. Instead we log
755 755
 	// warnings if there are errors.
756 756
 	for _, item := range items {
757 757
 		if item.IsDir() && strings.HasSuffix(item.Name(), "-removing") {
... ...
@@ -456,7 +456,7 @@ func (d *Driver) Cleanup() error {
456 456
 
457 457
 	// Note we don't return an error below - it's possible the files
458 458
 	// are locked. However, next time around after the daemon exits,
459
-	// we likely will be able to to cleanup successfully. Instead we log
459
+	// we likely will be able to cleanup successfully. Instead we log
460 460
 	// warnings if there are errors.
461 461
 	for _, item := range items {
462 462
 		if item.IsDir() && strings.HasSuffix(item.Name(), "-removing") {
... ...
@@ -103,7 +103,7 @@ type LogReader interface {
103 103
 type LogWatcher struct {
104 104
 	// For sending log messages to a reader.
105 105
 	Msg chan *Message
106
-	// For sending error messages that occur while while reading logs.
106
+	// For sending error messages that occur while reading logs.
107 107
 	Err          chan error
108 108
 	producerOnce sync.Once
109 109
 	producerGone chan struct{}