From 3febda0f8dcb17dda779a94910faa017cdcabcee Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Tue, 3 Oct 2023 22:00:32 +0900 Subject: [PATCH] try reproducing Signed-off-by: Takeshi Yoneda --- .github/workflows/workflow.yaml | 2 +- examples/shared_data/main.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index 43dea6be..47aed21a 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -5,7 +5,7 @@ on: - main push: branches: - - main + - testalign env: TINYGO_VERSION: 0.30.0 diff --git a/examples/shared_data/main.go b/examples/shared_data/main.go index 85404ac2..95ada4e0 100644 --- a/examples/shared_data/main.go +++ b/examples/shared_data/main.go @@ -17,7 +17,6 @@ package main import ( "encoding/binary" "errors" - "github.com/tetratelabs/proxy-wasm-go-sdk/proxywasm" "github.com/tetratelabs/proxy-wasm-go-sdk/proxywasm/types" ) @@ -87,7 +86,7 @@ func (ctx *httpContext) incrementData() (uint64, error) { return 0, err } - buf := make([]byte, 8) + buf := make([]byte, 11) ret := binary.LittleEndian.Uint64(value) + 1 binary.LittleEndian.PutUint64(buf, ret) if err := proxywasm.SetSharedData(sharedDataKey, buf, cas); err != nil {