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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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