Skip to content

Commit

Permalink
remove unused resolver method
Browse files Browse the repository at this point in the history
  • Loading branch information
ettec committed Oct 16, 2023
1 parent 932b4e9 commit f712692
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions datanode/gateway/graphql/referral_program_resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@
package gql

import (
v2 "code.vegaprotocol.io/vega/protos/data-node/api/v2"
"context"
"errors"
"math"
"time"

v2 "code.vegaprotocol.io/vega/protos/data-node/api/v2"

"code.vegaprotocol.io/vega/protos/vega"
)
Expand All @@ -44,11 +42,6 @@ func (r *referralProgramResolver) WindowLength(ctx context.Context, obj *vega.Re
return int(obj.WindowLength), nil
}

func (r *referralProgramResolver) EndOfProgramTimestamp(ctx context.Context, obj *vega.ReferralProgram) (string, error) {
endTime := time.Unix(obj.EndOfProgramTimestamp, 0)
return endTime.Format(time.RFC3339), nil
}

type currentReferralProgramResolver VegaResolverRoot

func (r *currentReferralProgramResolver) Version(ctx context.Context, obj *v2.ReferralProgram) (int, error) {
Expand Down

0 comments on commit f712692

Please sign in to comment.