diff --git a/main.go b/main.go index c3051a3d..4c6b0100 100644 --- a/main.go +++ b/main.go @@ -52,11 +52,11 @@ func main() { // === GitHub Integration === // This would be loaded from a config file in a real application githubConfig := &github.Config{ - AuthToken: os.Getenv("GITHUB_TOKEN"), // Make sure to set this environment variable - Owner: "anthonyrawlins", - Repository: "bzzz", + AccessToken: os.Getenv("GITHUB_TOKEN"), // Corrected field name + Owner: "anthonyrawlins", + Repository: "bzzz", } - ghClient, err := github.NewClient(githubConfig) + ghClient, err := github.NewClient(ctx, githubConfig) // Added missing ctx argument if err != nil { log.Fatalf("Failed to create GitHub client: %v", err) } @@ -118,4 +118,4 @@ func statusReporter(node *p2p.Node) { peers := node.ConnectedPeers() fmt.Printf("📊 Status: %d connected peers\n", peers) } -} +} \ No newline at end of file