Skip to content

Commit

Permalink
backend/postgres: Use Unwrap instead of Cause
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisMontagne authored Oct 19, 2023
1 parent bbc4c9c commit 6029c76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/postgres/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (qce *queryCanceledError) Is(target error) bool {
return target == context.Canceled
}

func (qce *queryCanceledError) Cause() error { return qce.cause }
func (qce *queryCanceledError) Unwrap() error { return qce.cause }

func wrapErr(err error) error {
if err == nil {
Expand Down

0 comments on commit 6029c76

Please sign in to comment.