diff options
Diffstat (limited to 'src/hub/src/spreadspace.org/sfive/s5cvt.go')
-rw-r--r-- | src/hub/src/spreadspace.org/sfive/s5cvt.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hub/src/spreadspace.org/sfive/s5cvt.go b/src/hub/src/spreadspace.org/sfive/s5cvt.go index e908bc6..330e2c1 100644 --- a/src/hub/src/spreadspace.org/sfive/s5cvt.go +++ b/src/hub/src/spreadspace.org/sfive/s5cvt.go @@ -49,7 +49,7 @@ func NewFilterDecoder() (decoder FilterDecoder) { } func (self *StatefulDecoder) Decode(jsonString []byte) (dat StatisticsData, err error) { - dat.CopyFrom(&self.sourceId) + dat.CopyFromSourceId(&self.sourceId) err = json.Unmarshal(jsonString, &dat) // like in PlainDecoder, let the client decide how to use partial results // (Unmarshal returns partial results in case of errors) @@ -64,7 +64,7 @@ func (self *PlainDecoder) Decode(jsonString []byte) (dat StatisticsData, err err func (self *PlainEncoder) Encode(data *StatisticsData) []byte { res, err := json.Marshal(data) if err != nil { - panic("oh fuck I cannot event marshal my own data") + s5l.Panicln("failed to encode StatisticsData") } return res } |