Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
try reproducing
Browse files Browse the repository at this point in the history
Signed-off-by: Takeshi Yoneda <[email protected]>
  • Loading branch information
mathetake committed Oct 3, 2023
1 parent 91314e8 commit 3febda0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- main
push:
branches:
- main
- testalign

env:
TINYGO_VERSION: 0.30.0
Expand Down
3 changes: 1 addition & 2 deletions examples/shared_data/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 3febda0

Please sign in to comment.