go fmt
parent
1521a3d253
commit
109afc0c43
2
rpc.go
2
rpc.go
|
@ -317,7 +317,7 @@ func init() {
|
|||
|
||||
// Also refetch media in case something has not
|
||||
// been downloaded yet
|
||||
loadMedia(map[string]struct{}{server.(string): struct{}{}})
|
||||
loadMedia(map[string]struct{}{server.(string): {}})
|
||||
|
||||
srvaddr, err := net.ResolveUDPAddr("udp", straddr.(string))
|
||||
if err != nil {
|
||||
|
|
|
@ -12,7 +12,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
AnnounceStart = "start"
|
||||
AnnounceStart = "start"
|
||||
AnnounceUpdate = "update"
|
||||
AnnounceDelete = "delete"
|
||||
)
|
||||
|
@ -118,7 +118,7 @@ func Announce(action string) error {
|
|||
part.Write(s)
|
||||
writer.Close()
|
||||
|
||||
_, err = http.Post(listsrv + "/announce", "multipart/form-data; boundary=" + writer.Boundary(), rqBody)
|
||||
_, err = http.Post(listsrv+"/announce", "multipart/form-data; boundary="+writer.Boundary(), rqBody)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue