mirror of https://bitbucket.org/ausocean/av.git
revid: made extractMeta a function of httpSender
This commit is contained in:
parent
f1ee09ad7b
commit
e79f6d191d
|
@ -153,10 +153,10 @@ func (s *httpSender) send() error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return extractMeta(reply, s)
|
return s.extractMeta(reply)
|
||||||
}
|
}
|
||||||
|
|
||||||
func extractMeta(r string, s *httpSender) error {
|
func (s *httpSender) extractMeta(r string) error {
|
||||||
dec, err := netsender.NewJsonDecoder(r)
|
dec, err := netsender.NewJsonDecoder(r)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue