This is an automated email from the ASF dual-hosted git repository.
zhongxjian pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-kubernetes.git
The following commit(s) were added to refs/heads/master by this push:
new e37cf03e [operator] fix typo
e37cf03e is described below
commit e37cf03e06109b7e15b9c5291b25961e4d27b653
Author: mfordjody <[email protected]>
AuthorDate: Sun Dec 8 12:40:41 2024 +0800
[operator] fix typo
---
pkg/laziness/laziness.go | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pkg/laziness/laziness.go b/pkg/laziness/laziness.go
index 0a65e5d3..f49f62c5 100644
--- a/pkg/laziness/laziness.go
+++ b/pkg/laziness/laziness.go
@@ -36,6 +36,7 @@ func NewWithRetry[T any](f func() (T, error)) Laziness[T] {
func (l *lazinessImpl[T]) Get() (T, error) {
if atomic.LoadUint32(&l.done) == 0 {
}
+ return nil, nil
}
func (l *lazinessImpl[T]) doSlow() (T, error) {
@@ -44,7 +45,7 @@ func (l *lazinessImpl[T]) doSlow() (T, error) {
if l.done == 0 {
done := uint32(1)
defer func() {
- atomic.StoreInt32(&l.done, done)
+ atomic.StoreUint32(&l.done, done)
}()
res, err := l.getter()
if l.retry && err != nil {