mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-06 18:35:19 +00:00
skip map value with depth limit
This commit is contained in:
parent
6a7278b9db
commit
0f760537c3
@ -146,7 +146,11 @@ func Skip(ctx context.Context, self TProtocol, fieldType TType, maxDepth int) (e
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
self.Skip(ctx, valueType)
|
|
||||||
|
err = Skip(ctx, self, valueType, maxDepth-1)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return self.ReadMapEnd(ctx)
|
return self.ReadMapEnd(ctx)
|
||||||
case SET:
|
case SET:
|
||||||
|
Loading…
Reference in New Issue
Block a user