Skip to content

Commit

Permalink
remove enclave creation time
Browse files Browse the repository at this point in the history
  • Loading branch information
tedim52 committed Nov 28, 2023
1 parent 2bc89bc commit e52fdce
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions engine/server/engine/server/engine_connect_server_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (
"github.com/sirupsen/logrus"
"google.golang.org/protobuf/types/known/emptypb"
"google.golang.org/protobuf/types/known/timestamppb"
"time"
)

const (
Expand Down Expand Up @@ -402,21 +401,3 @@ func newConjunctiveLogLineFiltersFromGRPCLogLineFilters(

return conjunctiveLogLineFilters, nil
}

func (service *EngineConnectServerService) getEnclaveCreationTime(ctx context.Context, enclaveUuid enclave.EnclaveUUID) (time.Time, error) {
enclaves, err := service.enclaveManager.GetEnclaves(ctx)
if err != nil {
return time.Time{}, err
}

enclaveObj, found := enclaves[string(enclaveUuid)]
if !found {
return time.Time{}, stacktrace.NewError("Engine could not find enclave '%v'", enclaveUuid)
}

timestamp := enclaveObj.GetCreationTime()
if timestamp == nil {
return time.Time{}, stacktrace.NewError("An error occurred getting the creation time for enclave '%v'. This is a bug in Kurtosis", enclaveUuid)
}
return timestamp.AsTime(), nil
}

0 comments on commit e52fdce

Please sign in to comment.