From f957079489f3c7f279bff24d44fca44aa10879d0 Mon Sep 17 00:00:00 2001 From: Andrey Petrov Date: Tue, 16 Dec 2014 19:22:00 -0800 Subject: [PATCH] Fix literal referenc. --- server.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server.go b/server.go index 74d3f3c..205d848 100644 --- a/server.go +++ b/server.go @@ -1,17 +1,17 @@ package main import ( + "bufio" "crypto/md5" + "encoding/base64" "fmt" "net" + "net/http" "regexp" "strings" "sync" "syscall" "time" - "net/http" - "bufio" - "encoding/base64" "golang.org/x/crypto/ssh" ) @@ -301,10 +301,10 @@ func (s *Server) whitelistFingerprint(fingerprint string) error { } // Client for getting github pub keys -var timeout = time.Duration(10 * time.Second) var client = http.Client{ - Timeout: timeout, + Timeout: time.Duration(10 * time.Second), } + // Returns an array of public keys for the given github user URL func getGithubPubKeys(user string) ([]ssh.PublicKey, error) { resp, err := client.Get("http://github.com/" + user + ".keys")