summaryrefslogtreecommitdiff
path: root/libpod/boltdb_state.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2019-01-08 14:05:56 -0500
committerMatthew Heon <matthew.heon@pm.me>2019-01-10 15:48:09 -0500
commit167d50a9fa7bd9e7b3bcd344c8ea519ae98565bf (patch)
treed00183a20ae35731d8b967a157c0cd4be4698adc /libpod/boltdb_state.go
parent1b761dbb02afc52f97a50af4b073a756c5cc6820 (diff)
downloadpodman-167d50a9fa7bd9e7b3bcd344c8ea519ae98565bf.tar.gz
podman-167d50a9fa7bd9e7b3bcd344c8ea519ae98565bf.tar.bz2
podman-167d50a9fa7bd9e7b3bcd344c8ea519ae98565bf.zip
Move all libpod/ JSON references over to jsoniter
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'libpod/boltdb_state.go')
-rw-r--r--libpod/boltdb_state.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/libpod/boltdb_state.go b/libpod/boltdb_state.go
index b154d8bda..e7a07a9a8 100644
--- a/libpod/boltdb_state.go
+++ b/libpod/boltdb_state.go
@@ -2,15 +2,17 @@ package libpod
import (
"bytes"
- "encoding/json"
"strings"
"sync"
"github.com/boltdb/bolt"
+ jsoniter "github.com/json-iterator/go"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
)
+var json = jsoniter.ConfigCompatibleWithStandardLibrary
+
// BoltState is a state implementation backed by a Bolt DB
type BoltState struct {
valid bool