Merge pull request #959 from bluk/fix-go-bindings-warning
Fix Go bindings possible nested comment warnings
This commit is contained in:
commit
bd52f8cbd6
|
@ -86,7 +86,7 @@ func retryable(wrapped func() (interface{}, error), onError func(Error) FutureNi
|
|||
for {
|
||||
ret, e = wrapped()
|
||||
|
||||
/* No error means success! */
|
||||
// No error means success!
|
||||
if e == nil {
|
||||
return
|
||||
}
|
||||
|
@ -96,8 +96,8 @@ func retryable(wrapped func() (interface{}, error), onError func(Error) FutureNi
|
|||
e = onError(ep).Get()
|
||||
}
|
||||
|
||||
/* If OnError returns an error, then it's not
|
||||
/* retryable; otherwise take another pass at things */
|
||||
// If OnError returns an error, then it's not
|
||||
// retryable; otherwise take another pass at things
|
||||
if e != nil {
|
||||
return
|
||||
}
|
||||
|
@ -125,7 +125,7 @@ func retryable(wrapped func() (interface{}, error), onError func(Error) FutureNi
|
|||
// Transaction and Database objects.
|
||||
func (d Database) Transact(f func(Transaction) (interface{}, error)) (interface{}, error) {
|
||||
tr, e := d.CreateTransaction()
|
||||
/* Any error here is non-retryable */
|
||||
// Any error here is non-retryable
|
||||
if e != nil {
|
||||
return nil, e
|
||||
}
|
||||
|
@ -165,7 +165,7 @@ func (d Database) Transact(f func(Transaction) (interface{}, error)) (interface{
|
|||
// Transaction, Snapshot and Database objects.
|
||||
func (d Database) ReadTransact(f func(ReadTransaction) (interface{}, error)) (interface{}, error) {
|
||||
tr, e := d.CreateTransaction()
|
||||
/* Any error here is non-retryable */
|
||||
// Any error here is non-retryable
|
||||
if e != nil {
|
||||
return nil, e
|
||||
}
|
||||
|
|
|
@ -37,9 +37,9 @@ import (
|
|||
"unsafe"
|
||||
)
|
||||
|
||||
/* Would put this in futures.go but for the documented issue with
|
||||
/* exports and functions in preamble
|
||||
/* (https://code.google.com/p/go-wiki/wiki/cgo#Global_functions) */
|
||||
// Would put this in futures.go but for the documented issue with
|
||||
// exports and functions in preamble
|
||||
// (https://code.google.com/p/go-wiki/wiki/cgo#Global_functions)
|
||||
//export unlockMutex
|
||||
func unlockMutex(p unsafe.Pointer) {
|
||||
m := (*sync.Mutex)(p)
|
||||
|
|
Loading…
Reference in New Issue