Skip to content

Commit 2939020

Browse files
committed
fix(thread config): fix thread id generator
1 parent 32306bc commit 2939020

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

library/src/main/java/com/queue/library/ThreadConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
*/
1010
public final class ThreadConfig {
1111

12-
private final static AtomicInteger THREAD_ID_GENETOR = new AtomicInteger(1);
12+
private final static AtomicInteger THREAD_ID_GENERATOR = new AtomicInteger(1);
1313

1414
public static int getUniqueThreadId() {
15-
return THREAD_ID_GENETOR.getAndIncrement();
15+
return THREAD_ID_GENERATOR.getAndIncrement();
1616
}
1717

1818
}

0 commit comments

Comments
 (0)