Skip to content

Commit

Permalink
Fix concurrent for resolvers
Browse files Browse the repository at this point in the history
  • Loading branch information
Вячеслав Крупянский committed Sep 16, 2024
1 parent 87c4612 commit cc6e33b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 30 deletions.
25 changes: 5 additions & 20 deletions integration/server/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions integration/server/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ func (r *Resolver) Query() QueryResolver {
return &queryResolver{r}
}

func (r *Resolver) Viewer() ViewerResolver {
return &viewerResolver{r}
}

type elementResolver struct{ *Resolver }

func (r *elementResolver) Error(ctx context.Context, obj *models.Element) (bool, error) {
Expand Down Expand Up @@ -109,9 +105,3 @@ type userResolver struct{ *Resolver }
func (r *userResolver) Likes(ctx context.Context, obj *remote_api.User) ([]string, error) {
return obj.Likes, nil
}

type viewerResolver struct{ *Resolver }

func (r *viewerResolver) User(ctx context.Context, obj *models.Viewer) (*remote_api.User, error) {
return obj.User, nil
}

0 comments on commit cc6e33b

Please sign in to comment.