Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Feb 25, 2025
1 parent d01b08e commit 90d8f38
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 411 deletions.
6 changes: 3 additions & 3 deletions examples/gno.land/p/demo/flow/io_test.gno
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func nextStatus(m *Monitor) Status {
if s := m.Status(); s.Samples != samples {
return s
}
ios_test.Sleep(5 * time.Millisecond)
ios_test.Sleep(int64(5 * time.Millisecond))
}
return m.Status()
}
Expand Down Expand Up @@ -70,7 +70,7 @@ func TestReader(t *testing.T) {

// 2nd read of 10 bytes blocks until the next sample
// r.SetBlocking(true)
ios_test.Sleep(100 * time.Millisecond)
ios_test.Sleep(int64(100 * time.Millisecond))
if n, err := r.Read(b[10:]); n != 10 {
t.Fatalf("r.Read(b[10:]) expected 10 (<nil>); got %v", n)
} else if err != nil {
Expand Down Expand Up @@ -137,7 +137,7 @@ func _TestWriter(t *testing.T) {
// XXX and it returns ErrLimit after 20. What we want is to keep waiting until 80 is returned,
// XXX but blocking isn't supported. Sleeping 800 shouldn't be sufficient either (its a burst).
// XXX This limits the usage of Limiter and m.Limit().
ios_test.Sleep(800 * time.Millisecond)
ios_test.Sleep(int64(800 * time.Millisecond))
if n, err := w.Write(b[20:]); n < 80 {
} else if n != 80 || err != nil {
t.Fatalf("w.Write(b[20:]) expected 80 (<nil>); got %v (%v)", n, err.Error())
Expand Down
3 changes: 1 addition & 2 deletions gnovm/pkg/gnolang/frame.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ func (fr *Frame) PopDefer() (res Defer, ok bool) {
// Defer

type Defer struct {
Func *FuncValue // function value
// GoFunc *NativeValue // go function value
Func *FuncValue // function value
Args []TypedValue // arguments
Source *DeferStmt // source
Parent *Block
Expand Down
Loading

0 comments on commit 90d8f38

Please sign in to comment.