Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 1062 | |
| 1063 | // Format implements the NodeFormatter interface. |
| 1064 | func (p LockingWaitPolicy) Format(ctx *FmtCtx) { |
| 1065 | if p != LockWaitBlock { |
| 1066 | ctx.WriteString(" ") |
| 1067 | ctx.WriteString(p.String()) |
| 1068 | } |
| 1069 | } |
| 1070 | |
| 1071 | // Max returns the maximum of the two locking wait policies. |
| 1072 | func (p LockingWaitPolicy) Max(p2 LockingWaitPolicy) LockingWaitPolicy { |
nothing calls this directly
no test coverage detected