Skip to content

Commit

Permalink
[#6078] feat(core): Support model event to Gravitino server
Browse files Browse the repository at this point in the history
Fix some error.
  • Loading branch information
Abyss-lord committed Jan 9, 2025
1 parent 681bcbb commit 799df18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

/** Represents an event triggered upon the successful getting the version of a model. */
public class GetModelVersionEvent extends ModelEvent {
public final ModelInfo GetModelVersionInfo;
public final ModelInfo getModelVersionInfo;

/**
* Constructs an instance of {@code GetModelVersionEvent}.
Expand All @@ -36,7 +36,7 @@ public class GetModelVersionEvent extends ModelEvent {
public GetModelVersionEvent(
String user, NameIdentifier identifier, ModelInfo getModelVersionInfo) {
super(user, identifier);
GetModelVersionInfo = getModelVersionInfo;
this.getModelVersionInfo = getModelVersionInfo;
}

/**
Expand All @@ -46,7 +46,7 @@ public GetModelVersionEvent(
* @return A {@link ModelInfo} instance encapsulating the details of the model version.
*/
public ModelInfo getModelVersionInfo() {
return GetModelVersionInfo;
return getModelVersionInfo;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ public ModelInfo(Model model) {
* Constructs model information based on a given model and model versions.
*
* @param model the model to expose information for.
* @param modelVersion the versions of the model.
* @param modelVersions the versions of the model.
*/
public ModelInfo(Model model, ModelVersion[] modelVersion) {
public ModelInfo(Model model, ModelVersion[] modelVersions) {
this.name = model.name();
this.properties = model.properties();
this.comment = model.comment();
this.audit = model.auditInfo();
this.lastVersion = model.latestVersion();
this.versions = modelVersion;
this.versions = modelVersions;
}

/**
Expand Down

0 comments on commit 799df18

Please sign in to comment.