Skip to content

Commit

Permalink
feat: return entry when request is blocked.
Browse files Browse the repository at this point in the history
  • Loading branch information
sysulq committed Nov 18, 2022
1 parent 0d804bb commit 5888fee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func entry(resource string, options *EntryOptions) (*base.SentinelEntry, *base.B
// must finish the lifecycle of r.
blockErr := base.NewBlockErrorFromDeepCopy(r.BlockError())
e.Exit()
return nil, blockErr
return e, blockErr
}

return e, nil
Expand Down

0 comments on commit 5888fee

Please sign in to comment.