Skip to content

Commit

Permalink
fix(rpc): registered json.RawMessage for gob encoding (#1232)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arqu authored Mar 31, 2020
1 parent 652e462 commit 0832292
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package lib
import (
"context"
"encoding/gob"
"encoding/json"
"errors"
"fmt"
"net"
Expand Down Expand Up @@ -56,6 +57,7 @@ func init() {
// Fields like dataset.Structure.Schema contain data of arbitrary types,
// registering with the gob package prevents errors when sending them
// over net/rpc calls.
gob.Register(json.RawMessage{})
gob.Register([]interface{}{})
gob.Register(map[string]interface{}{})
}
Expand Down

0 comments on commit 0832292

Please sign in to comment.