Skip to content

Commit b18dbfd

Browse files
committed
blockingqueue#add -> offer
1 parent bc80b69 commit b18dbfd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

util/src/main/java/io/kubernetes/client/informer/cache/ProcessorListener.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ public void add(Notification<ApiType> obj) {
9090
if (obj == null) {
9191
return;
9292
}
93-
this.queue.add(obj);
93+
if (!this.queue.offer(obj)) {
94+
log.warn("notification queue full!");
95+
}
9496
}
9597

9698
public void determineNextResync(DateTime now) {

0 commit comments

Comments
 (0)