Skip to content

Commit 7732544

Browse files
committed
Merge remote-tracking branch 'origin/main' into simplify-clientHook-refcounts
2 parents c8881a6 + 67bc9cb commit 7732544

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

capability.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,8 @@ func (c Client) peek() (hook *clientHook, released bool, resolved bool) {
266266
}
267267

268268
// resolveHook resolves h as much as possible without blocking.
269-
// l must point to the state belonging to h. resolveHook returns,
270-
// l will be invalid. The returnd Locked will point at the state of
269+
// l must point to the state belonging to h. When resolveHook returns,
270+
// l will be invalid. The returned Locked will point at the state of
271271
// the returned clientHook if they are not nil.
272272
func resolveHook(h *clientHook, l *mutex.Locked[clientHookState]) (*clientHook, *mutex.Locked[clientHookState]) {
273273
for {

rpc/question.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func (q *question) handleCancel(ctx context.Context) {
130130

131131
q.p.Reject(rejectErr)
132132
if q.bootstrapPromise != nil {
133-
q.bootstrapPromise.Fulfill(q.p.Answer().Client())
133+
q.bootstrapPromise.Reject(rejectErr)
134134
q.p.ReleaseClients()
135135
}
136136
})

0 commit comments

Comments
 (0)