Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
Fix build.
Browse files Browse the repository at this point in the history
  • Loading branch information
lauravuo committed Apr 27, 2023
1 parent 7d7768e commit 23afa26
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions agency/findy/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func (f *Agency) handleAction(
return
}
// TODO: what if we are issuer?
try.To(f.vault.AddCredential(job, credential))
_ = try.To1(f.vault.AddCredential(job, credential))

case agency.Protocol_PRESENT_PROOF:
proof := statusToProof(status)
Expand All @@ -180,7 +180,7 @@ func (f *Agency) handleAction(
return
}
// TODO: what if we are verifier?
try.To(f.vault.AddProof(job, proof))
_ = try.To1(f.vault.AddProof(job, proof))

case agency.Protocol_NONE:
case agency.Protocol_TRUST_PING:
Expand Down
9 changes: 6 additions & 3 deletions agency/model/listener.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package model

import "github.com/findy-network/findy-agent-vault/graph/model"
import (
dbModel "github.com/findy-network/findy-agent-vault/db/model"
"github.com/findy-network/findy-agent-vault/graph/model"
)

type Connection struct {
OurDID, TheirDID, TheirEndpoint, TheirLabel string
Expand Down Expand Up @@ -42,10 +45,10 @@ type Listener interface {
AddMessage(job *JobInfo, message *Message) error
UpdateMessage(job *JobInfo, update *MessageUpdate) error

AddCredential(job *JobInfo, credential *Credential) error
AddCredential(job *JobInfo, credential *Credential) (*dbModel.Job, error)
UpdateCredential(job *JobInfo, credential *Credential, update *CredentialUpdate) error

AddProof(job *JobInfo, proof *Proof) error
AddProof(job *JobInfo, proof *Proof) (*dbModel.Job, error)
UpdateProof(job *JobInfo, proof *Proof, update *ProofUpdate) error

FailJob(job *JobInfo) error
Expand Down

0 comments on commit 23afa26

Please sign in to comment.