Kaballas commited on
Commit
3ba91c1
·
1 Parent(s): 7679de2
Files changed (1) hide show
  1. handlers.go +2 -10
handlers.go CHANGED
@@ -29,17 +29,9 @@ func NewServer() (*Server, error) {
29
  log.Printf("GH_TOKEN is set (%d chars)", len(token))
30
  }
31
 
32
- // Create client with token if available
33
- opts := &copilot.ClientOptions{
34
  LogLevel: "error",
35
- }
36
-
37
- // Try to set token if available
38
- if token != "" {
39
- opts.AuthToken = token
40
- }
41
-
42
- client := copilot.NewClient(opts)
43
 
44
  log.Println("Starting copilot client...")
45
  if err := client.Start(); err != nil {
 
29
  log.Printf("GH_TOKEN is set (%d chars)", len(token))
30
  }
31
 
32
+ client := copilot.NewClient(&copilot.ClientOptions{
 
33
  LogLevel: "error",
34
+ })
 
 
 
 
 
 
 
35
 
36
  log.Println("Starting copilot client...")
37
  if err := client.Start(); err != nil {