Skip to content

Commit

Permalink
feat(UserManager): Changed ConcurrentObjectMap to ObservableObjectMap
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeV220 committed Apr 8, 2023
1 parent 049f676 commit 24fa0a4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.georgev22.library.database.mongo.MongoDB;
import com.georgev22.library.maps.ConcurrentObjectMap;
import com.georgev22.library.maps.ObjectMap;
import com.georgev22.library.maps.ObservableObjectMap;
import com.georgev22.library.maps.utilities.ObjectMapSerializerDeserializer;
import com.google.common.annotations.Beta;
import com.google.gson.Gson;
Expand Down Expand Up @@ -43,7 +44,7 @@ public class UserManager {
private final MongoDB mongoDB;
private final String collection;
private final Type type;
private final ObjectMap<UUID, User> loadedUsers = new ConcurrentObjectMap<>();
private final ObjectMap<UUID, User> loadedUsers = new ObservableObjectMap<>();

/**
* Constructor for the UserManager class
Expand Down

0 comments on commit 24fa0a4

Please sign in to comment.