Skip to content

Commit

Permalink
whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvolp12 committed Nov 17, 2024
1 parent 30a2725 commit 15004ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions did/multi.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@ func (mr *MultiResolver) FlushCacheFor(didstr string) {

func (mr *MultiResolver) GetDocument(ctx context.Context, didstr string) (*did.Document, error) {
s := time.Now()
defer func() {
mrResolveDuration.WithLabelValues(didstr).Observe(time.Since(s).Seconds())
}()

pdid, err := did.ParseDID(didstr)
if err != nil {
return nil, err
}

method := pdid.Protocol()
defer func() {
mrResolveDuration.WithLabelValues(method).Observe(time.Since(s).Seconds())
}()

res, ok := mr.handlers[method]
if !ok {
Expand Down

0 comments on commit 15004ab

Please sign in to comment.