mirror of
https://github.com/hanzoai/tasks.git
synced 2026-11-03 03:56:04 +00:00
## What changed? Integrate Go 1.26's new `go fix` into workflow. NOTE that the changes caused our linter to fire; a [separate commit](https://github.com/temporalio/temporal/pull/9337/commits/1b23f787aef370098b35829c4d17dcc06230b4c1) addresses those. ## Why? Ensure Go code is standardized/modernized. ## How did you test it? - [ ] built - [ ] run locally and tested manually - [x] covered by existing tests - [ ] added new unit test(s) - [ ] added new functional test(s)
36 lines
611 B
Go
36 lines
611 B
Go
package gocql
|
|
|
|
import (
|
|
"github.com/gocql/gocql"
|
|
)
|
|
|
|
type iter struct {
|
|
session *session
|
|
gocqlIter *gocql.Iter
|
|
}
|
|
|
|
func newIter(session *session, gocqlIter *gocql.Iter) *iter {
|
|
return &iter{
|
|
session: session,
|
|
gocqlIter: gocqlIter,
|
|
}
|
|
}
|
|
|
|
func (it *iter) Scan(dest ...any) bool {
|
|
return it.gocqlIter.Scan(dest...)
|
|
}
|
|
|
|
func (it *iter) MapScan(m map[string]any) bool {
|
|
return it.gocqlIter.MapScan(m)
|
|
}
|
|
|
|
func (it *iter) PageState() []byte {
|
|
return it.gocqlIter.PageState()
|
|
}
|
|
|
|
func (it *iter) Close() (retError error) {
|
|
defer func() { it.session.handleError(retError) }()
|
|
|
|
return it.gocqlIter.Close()
|
|
}
|