File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
apiserver/src/server/exec
bloodhound/src/bin/kubernetes-cis-checks Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -493,7 +493,7 @@ impl ReadFromUser {
493493
494494 // Occasionally log that we're still waiting, if someone is watching at trace level.
495495 waited += 1 ;
496- if waited % 100 == 0 {
496+ if waited. is_multiple_of ( 100 ) {
497497 trace ! ( "Waiting for server capacity..." ) ;
498498 }
499499 sleep ( Duration :: from_millis ( 10 ) ) ;
Original file line number Diff line number Diff line change @@ -430,7 +430,7 @@ impl WriteToChild {
430430 messages_written += 1 ;
431431 // Every so often, send a capacity update to the client so it knows what we've written
432432 // and how many messages we're willing to accept.
433- if messages_written % CAPACITY_UPDATE_INTERVAL == 0 {
433+ if messages_written. is_multiple_of ( CAPACITY_UPDATE_INTERVAL ) {
434434 let capacity = Capacity {
435435 max_messages_outstanding : MAX_MESSAGES_OUTSTANDING ,
436436 messages_written,
Original file line number Diff line number Diff line change @@ -521,7 +521,7 @@ impl Checker for K8S04020900Checker {
521521}
522522
523523// =>o.o<= =>o.o<= =>o.o<= =>o.o<= =>o.o<= =>o.o<= =>o.o<= =>o.o<= =>o.o<= =>o.o<=
524-
524+ # [ allow ( dead_code ) ]
525525pub struct K8S04021000Checker { }
526526
527527// Not actually applicable for Bottlerocket, but leaving logic here in case we
You can’t perform that action at this time.
0 commit comments