refactoring only

This commit is contained in:
Chris Lu
2012-08-23 19:10:55 -07:00
parent 10c2a4540e
commit 5caa7bbdc9
3 changed files with 11 additions and 14 deletions

View File

@@ -5,7 +5,7 @@ import (
"encoding/json"
"log"
"net/http"
"pkg/storage"
"pkg/topology"
"strconv"
"strings"
)
@@ -60,7 +60,7 @@ func dirAssignHandler(w http.ResponseWriter, r *http.Request) {
func dirJoinHandler(w http.ResponseWriter, r *http.Request) {
s := r.RemoteAddr[0:strings.Index(r.RemoteAddr, ":")+1] + r.FormValue("port")
publicUrl := r.FormValue("publicUrl")
volumes := new([]storage.VolumeInfo)
volumes := new([]topology.VolumeInfo)
json.Unmarshal([]byte(r.FormValue("volumes")), volumes)
if *IsDebug {
log.Println(s, "volumes", r.FormValue("volumes"))