Skip to content

Commit bf6f4d4

Browse files
committed
feat: expand JD memory client functionality to match Job Distributor API
This expands the JD memory client functionality to match the Job Distributor API, and updates the test suite.
1 parent 9572077 commit bf6f4d4

4 files changed

Lines changed: 479 additions & 225 deletions

File tree

.changeset/sour-years-clap.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"chainlink-deployments-framework": minor
3+
---
4+
5+
Improve JD Memory client to be aligned with the Job Distributor implementation

offchain/jd/memory/error.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package memory
2+
3+
import (
4+
"google.golang.org/grpc/codes"
5+
"google.golang.org/grpc/status"
6+
)
7+
8+
func errNotFoundID(entityType string, id string) error {
9+
return status.Errorf(codes.NotFound, "%s with id %s not found", entityType, id)
10+
}
11+
12+
func errNilRequest() error {
13+
return status.Error(codes.InvalidArgument, "request cannot be nil")
14+
}
15+
16+
func errUUIDLookupNotSupported() error {
17+
return status.Error(codes.InvalidArgument, "uuid lookup is deprecated and not supported by this implementation")
18+
}

0 commit comments

Comments
 (0)