Skip to content

Commit

Permalink
feat:optimize code (#262)
Browse files Browse the repository at this point in the history
* feat:optimize code
* feat:handle conflicts
  • Loading branch information
tanjunchen authored May 10, 2021
1 parent baf2bb3 commit ea64e9f
Show file tree
Hide file tree
Showing 10 changed files with 1,909 additions and 1,898 deletions.
3 changes: 3 additions & 0 deletions tools/wasme/changelog/v0.0.34/optimize-code.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
changelog:
- type: NON_USER_FACING
description: optimize code
2 changes: 1 addition & 1 deletion tools/wasme/cli/docs/content/reference/cli/wasme_init.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The provided --language flag will determine the programming language used for th
C++.

The provided --platform flag will determine the target platform used for the new filter. This is important to
ensure compatibility between the filter and the
ensure compatibility between the filter and the platform.

If --language, --platform, or --platform-version are not provided, the CLI will present an interactive prompt. Disable the prompt with --disable-prompt

Expand Down
299 changes: 149 additions & 150 deletions tools/wasme/cli/pkg/cmd/initialize/assemblyscript_archive_2gobytes.go

Large diffs are not rendered by default.

922 changes: 460 additions & 462 deletions tools/wasme/cli/pkg/cmd/initialize/cpp-istio-1.5_archive_2gobytes.go

Large diffs are not rendered by default.

931 changes: 465 additions & 466 deletions tools/wasme/cli/pkg/cmd/initialize/cpp-istio-1.7_archive_2gobytes.go

Large diffs are not rendered by default.

940 changes: 469 additions & 471 deletions tools/wasme/cli/pkg/cmd/initialize/cpp_archive_2gobytes.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tools/wasme/cli/pkg/cmd/initialize/initialize.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ The provided --language flag will determine the programming language used for th
C++.
The provided --platform flag will determine the target platform used for the new filter. This is important to
ensure compatibility between the filter and the
ensure compatibility between the filter and the platform.
If --language, --platform, or --platform-version are not provided, the CLI will present an interactive prompt. Disable the prompt with --disable-prompt
Expand Down
448 changes: 223 additions & 225 deletions tools/wasme/cli/pkg/cmd/initialize/rust-istio-1.7_archive_2gobytes.go

Large diffs are not rendered by default.

255 changes: 137 additions & 118 deletions tools/wasme/cli/pkg/cmd/initialize/tinygo_archive_2gobytes.go

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions tools/wasme/pkg/cache/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,7 @@ func (f *localImagePuller) addToDirectory(ctx context.Context, digest digest.Dig

logrus.Infof("writing image to %v", filename)

err := f.copyToFile(ctx, filename, digest)
if err != nil {
}
return err
return f.copyToFile(ctx, filename, digest)
}

func (f *localImagePuller) copyToFile(ctx context.Context, filename string, digest digest.Digest) error {
Expand Down

0 comments on commit ea64e9f

Please sign in to comment.