Move CheckTxnAuth to txn.

This commit is contained in:
Piotr Tabor
2022-04-05 10:06:35 +02:00
parent c78bf655a7
commit c62f01e5fe
3 changed files with 59 additions and 14 deletions

View File

@ -173,7 +173,7 @@ func (s *EtcdServer) Txn(ctx context.Context, r *pb.TxnRequest) (*pb.TxnResponse
var resp *pb.TxnResponse
var err error
chk := func(ai *auth.AuthInfo) error {
return apply2.CheckTxnAuth(s.authStore, ai, r)
return txn.CheckTxnAuth(s.authStore, ai, r)
}
defer func(start time.Time) {