修改 IdWorker#generateWorkerIdBaseOnMac 的注释

dev
ZhouXY108 2024-08-30 14:40:45 +08:00
parent f55ad5ae0c
commit 5c1f6046ed
1 changed files with 2 additions and 2 deletions

View File

@ -161,7 +161,7 @@ public class IdWorker {
* use lowest 10 bit of available MAC as workerId * use lowest 10 bit of available MAC as workerId
* @return workerId * @return workerId
* @throws SocketException * @throws SocketException
* @throws Exception when there is no available mac found * @throws NoAvailableMacFoundException when there is no available mac found
*/ */
private static long generateWorkerIdBaseOnMac() throws SocketException, NoAvailableMacFoundException { private static long generateWorkerIdBaseOnMac() throws SocketException, NoAvailableMacFoundException {
Enumeration<NetworkInterface> all = NetworkInterface.getNetworkInterfaces(); Enumeration<NetworkInterface> all = NetworkInterface.getNetworkInterfaces();