formatting

pull/342/head
John Shahid 2014-03-25 14:22:37 -04:00
parent 9ee31400ba
commit 10e1e0e3de
7 changed files with 15 additions and 10 deletions

View File

@ -2,7 +2,6 @@ package http
import ( import (
"cluster" "cluster"
log "code.google.com/p/log4go"
. "common" . "common"
"coordinator" "coordinator"
"crypto/tls" "crypto/tls"
@ -10,7 +9,6 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"
"github.com/bmizerany/pat"
"io/ioutil" "io/ioutil"
"net" "net"
libhttp "net/http" libhttp "net/http"
@ -19,6 +17,9 @@ import (
"strconv" "strconv"
"strings" "strings"
"time" "time"
log "code.google.com/p/log4go"
"github.com/bmizerany/pat"
) )
type HttpServer struct { type HttpServer struct {

View File

@ -2,7 +2,6 @@ package cluster
import ( import (
"bytes" "bytes"
log "code.google.com/p/log4go"
"common" "common"
"configuration" "configuration"
"crypto/sha1" "crypto/sha1"
@ -18,6 +17,8 @@ import (
"sync" "sync"
"time" "time"
"wal" "wal"
log "code.google.com/p/log4go"
) )
// defined by cluster config (in cluster package) // defined by cluster config (in cluster package)

View File

@ -2,7 +2,6 @@ package coordinator
import ( import (
"cluster" "cluster"
log "code.google.com/p/log4go"
"common" "common"
"configuration" "configuration"
"engine" "engine"
@ -16,6 +15,8 @@ import (
"strings" "strings"
"sync" "sync"
"time" "time"
log "code.google.com/p/log4go"
) )
type CoordinatorImpl struct { type CoordinatorImpl struct {

View File

@ -9,7 +9,6 @@ import (
"flag" "flag"
"fmt" "fmt"
"io/ioutil" "io/ioutil"
. "launchpad.net/gocheck"
"math/rand" "math/rand"
"net/http" "net/http"
"net/url" "net/url"
@ -20,6 +19,7 @@ import (
"syscall" "syscall"
"testing" "testing"
"time" "time"
. "launchpad.net/gocheck"
) )
const ( const (

View File

@ -8,7 +8,6 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"io/ioutil" "io/ioutil"
. "launchpad.net/gocheck"
"net" "net"
"net/http" "net/http"
"net/url" "net/url"
@ -16,6 +15,7 @@ import (
"path/filepath" "path/filepath"
"syscall" "syscall"
"time" "time"
. "launchpad.net/gocheck"
) )
type ServerSuite struct { type ServerSuite struct {

View File

@ -1,8 +1,6 @@
package wal package wal
import ( import (
"code.google.com/p/goprotobuf/proto"
logger "code.google.com/p/log4go"
"configuration" "configuration"
"fmt" "fmt"
"math" "math"
@ -11,6 +9,9 @@ import (
"protocol" "protocol"
"sort" "sort"
"strings" "strings"
"code.google.com/p/goprotobuf/proto"
logger "code.google.com/p/log4go"
) )
type WAL struct { type WAL struct {

View File

@ -2,10 +2,8 @@ package wal
import ( import (
. "checkers" . "checkers"
"code.google.com/p/goprotobuf/proto"
"configuration" "configuration"
"fmt" "fmt"
. "launchpad.net/gocheck"
"math" "math"
"net/http" "net/http"
_ "net/http/pprof" _ "net/http/pprof"
@ -14,6 +12,9 @@ import (
"protocol" "protocol"
"testing" "testing"
"time" "time"
"code.google.com/p/goprotobuf/proto"
. "launchpad.net/gocheck"
) )
func Test(t *testing.T) { func Test(t *testing.T) {