@@ -123,11 +123,10 @@ type stubClient struct {
123123}
124124
125125func (c * stubClient ) Insert (context.Context , any ) error { return nil }
126- func (c * stubClient ) InsertRaw (context.Context , any ) error { return nil }
127126func (c * stubClient ) Upsert (context.Context , any , ... string ) error { return nil }
128127func (c * stubClient ) Update (context.Context , any ) error { return nil }
129- func (c * stubClient ) LoadOrStore (context.Context , any , ... string ) (bool , error ) { return false , nil }
130- func (c * stubClient ) LoadAndDelete (context.Context , any , any , ... string ) (bool , error ) {
128+ func (c * stubClient ) GetOrInsert (context.Context , any , ... string ) (bool , error ) { return false , nil }
129+ func (c * stubClient ) GetAndDelete (context.Context , any , any , ... string ) (bool , error ) {
131130 return false , nil
132131}
133132func (c * stubClient ) Get (context.Context , any , string ) error { return nil }
@@ -146,5 +145,5 @@ func (c *stubClient) DgraphClient() (*dgo.Dgraph, func(), error) { return nil, f
146145func (c * stubClient ) WithRetry (_ context.Context , _ mg.RetryPolicy , fn func () error ) error {
147146 return fn ()
148147}
149- func (c * stubClient ) InTxn (* mg.TxnContext ) mg.Client { return c }
150- func (c * stubClient ) NewTxnContext (context.Context ) * mg.TxnContext { return nil }
148+ func (c * stubClient ) InTxn (tx * mg.Txn ) * mg.ClientTxn { return mg . InTxn ( tx ) }
149+ func (c * stubClient ) NewTxn (context.Context ) * mg.Txn { return nil }
0 commit comments