diff --git a/dgraphql/resolvers/trxcache.go b/dgraphql/resolvers/trxcache.go index 1255d873..94a06a31 100644 --- a/dgraphql/resolvers/trxcache.go +++ b/dgraphql/resolvers/trxcache.go @@ -9,14 +9,14 @@ import ( type TrxCache struct { capacity int data map[string]*list.Element - order *list.List + order list.List } func NewTrxCache(capacity int) *TrxCache { return &TrxCache{ capacity: capacity, data: make(map[string]*list.Element), - order: list.New(), + order: *list.New(), } }