dmitri.shuralyov.com/app/changes/cmd/changesdev

Update for githubql package rename.

Follows https://github.com/shurcooL/githubv4/commit/19298c78142b5fe80c2cdaa2091bc51cbc3a94fc.
dmitshur committed 6 years ago commit 10f5d9731d4e9f493558e249aae39706e397e026
Showing partial commit. Full Commit
Collapse all
cmd/changesdev/main.go
@@ -43,13 +43,13 @@ import (
	"dmitri.shuralyov.com/service/change/githubapi"
	"dmitri.shuralyov.com/service/change/httphandler"
	"dmitri.shuralyov.com/service/change/httproute"
	"dmitri.shuralyov.com/service/change/maintner"
	"github.com/andygrunwald/go-gerrit"
	"github.com/google/go-github/github"
	githubv3 "github.com/google/go-github/github"
	"github.com/gregjones/httpcache"
	"github.com/shurcooL/githubql"
	"github.com/shurcooL/githubv4"
	"github.com/shurcooL/home/httputil"
	"github.com/shurcooL/httpgzip"
	"github.com/shurcooL/reactions/emojis"
	"github.com/shurcooL/users"
	ghusers "github.com/shurcooL/users/githubapi"
@@ -77,12 +77,12 @@ func main() {
			},
			Cache:               httpcache.NewMemoryCache(),
			MarkCachedResponses: true,
		}
		httpClient := &http.Client{Transport: cacheTransport}
		ghV3 := github.NewClient(httpClient)
		ghV4 := githubql.NewClient(httpClient)
		ghV3 := githubv3.NewClient(httpClient)
		ghV4 := githubv4.NewClient(httpClient)

		var err error
		usersService, err = ghusers.NewService(ghV3)
		if err != nil {
			log.Fatalln("ghusers.NewService:", err)