mirror of https://github.com/tidwall/tile38.git
Fixed test
This commit is contained in:
parent
e577f60481
commit
60b054d58c
|
@ -28,6 +28,10 @@ func SetOutput(w io.Writer) {
|
|||
wr = w
|
||||
}
|
||||
|
||||
func init() {
|
||||
SetOutput(os.Stderr)
|
||||
}
|
||||
|
||||
func log(level int, tag, color string, formatted bool, format string, args ...interface{}) {
|
||||
if Level < level {
|
||||
return
|
||||
|
|
|
@ -20,7 +20,7 @@ import (
|
|||
|
||||
"github.com/gomodule/redigo/redis"
|
||||
"github.com/tidwall/gjson"
|
||||
"github.com/tidwall/tile38/controller"
|
||||
"github.com/tidwall/tile38/internal/server"
|
||||
)
|
||||
|
||||
const tile38Port = 9191
|
||||
|
@ -31,7 +31,6 @@ var tile38Addr string
|
|||
var httpAddr string
|
||||
|
||||
var wd string
|
||||
var server string
|
||||
|
||||
var minX float64
|
||||
var minY float64
|
||||
|
@ -101,7 +100,7 @@ func main() {
|
|||
|
||||
func startTile38Server() {
|
||||
log.Println("start tile38 server")
|
||||
err := controller.ListenAndServe("localhost", tile38Port, "data")
|
||||
err := server.Serve("localhost", tile38Port, "data", false)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue