| @@ -88,7 +88,7 @@ func appendDistributionSourceLabel(originLabel, repo string) string { | ||||
| 	} | ||||
| 	repos = append(repos, repo) | ||||
|  | ||||
| 	// use emtpy string to present duplicate items | ||||
| 	// use empty string to present duplicate items | ||||
| 	for i := 1; i < len(repos); i++ { | ||||
| 		tmp, j := repos[i], i-1 | ||||
| 		for ; j >= 0 && repos[j] >= tmp; j-- { | ||||
|   | ||||
| @@ -192,7 +192,7 @@ func benchmarkSnapshotter(b *testing.B, snapshotter snapshots.Snapshotter) { | ||||
| 				assert.NilError(b, err) | ||||
| 				writeDuration += time.Since(timer) | ||||
|  | ||||
| 				parent = fmt.Sprintf("comitted-%d", atomic.AddInt64(&layerIndex, 1)) | ||||
| 				parent = fmt.Sprintf("committed-%d", atomic.AddInt64(&layerIndex, 1)) | ||||
|  | ||||
| 				timer = time.Now() | ||||
| 				err = snapshotter.Commit(ctx, parent, current) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Davor Kapsa
					Davor Kapsa