mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2025-02-05 15:11:56 +01:00
Prefer "storage provider" to "dao" in logging messages for consistency with rest of code base
This commit is contained in:
parent
9a92920120
commit
fae5ebe226
@ -113,7 +113,7 @@ public class Storage {
|
||||
try {
|
||||
this.implementation.init();
|
||||
} catch (Exception e) {
|
||||
this.plugin.getLogger().severe("Failed to init storage dao");
|
||||
this.plugin.getLogger().severe("Failed to init storage implementation");
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
@ -122,7 +122,7 @@ public class Storage {
|
||||
try {
|
||||
this.implementation.shutdown();
|
||||
} catch (Exception e) {
|
||||
this.plugin.getLogger().severe("Failed to shutdown storage dao");
|
||||
this.plugin.getLogger().severe("Failed to shutdown storage implementation");
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,7 @@
|
||||
package me.lucko.luckperms.common.storage.implementation.custom;
|
||||
|
||||
/**
|
||||
* Hook to allow external code to provide a storage dao
|
||||
* Hook to allow external code to provide a storage implementation
|
||||
*/
|
||||
public final class CustomStorageProviders {
|
||||
private CustomStorageProviders() {}
|
||||
|
@ -145,9 +145,10 @@ public class CombinedConfigurateStorage extends AbstractConfigurateStorage {
|
||||
private FileWatcher.WatchedLocation watcher = null;
|
||||
|
||||
/**
|
||||
* Creates a new configurate dao
|
||||
* Creates a new configurate storage implementation
|
||||
*
|
||||
* @param plugin the plugin instance
|
||||
* @param implementationName the name of this dao
|
||||
* @param implementationName the name of this implementation
|
||||
* @param fileExtension the file extension used by this instance, including a "." at the start
|
||||
* @param dataFolderName the name of the folder used to store data
|
||||
*/
|
||||
|
@ -66,9 +66,10 @@ public class SeparatedConfigurateStorage extends AbstractConfigurateStorage {
|
||||
private FileWatcher.WatchedLocation trackWatcher = null;
|
||||
|
||||
/**
|
||||
* Creates a new configurate dao
|
||||
* Creates a new configurate storage implementation
|
||||
*
|
||||
* @param plugin the plugin instance
|
||||
* @param implementationName the name of this dao
|
||||
* @param implementationName the name of this implementation
|
||||
* @param fileExtension the file extension used by this instance, including a "." at the start
|
||||
* @param dataFolderName the name of the folder used to store data
|
||||
*/
|
||||
|
@ -67,7 +67,7 @@ public class ExpireTemporaryTask implements Runnable {
|
||||
|
||||
// return true if the holder's io lock is currently held, false otherwise
|
||||
private static boolean shouldSkip(PermissionHolder holder) {
|
||||
// if the holder is currently being manipulated by the storage dao,
|
||||
// if the holder is currently being manipulated by the storage impl,
|
||||
// don't attempt to audit temporary permissions
|
||||
if (!holder.getIoLock().tryLock()) {
|
||||
// if #tryLock returns false, it means it's held by something else
|
||||
|
Loading…
Reference in New Issue
Block a user