Skip to content

Commit f97dce6

Browse files
committed
chore: removed unnecessary status check for session
1 parent 306b369 commit f97dce6

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

x/session/keeper/msg_handler.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,6 @@ func (k *Keeper) HandleMsgUpdateSession(ctx sdk.Context, msg *v3.MsgUpdateSessio
7979
return nil, types.NewErrorUnauthorized(msg.From)
8080
}
8181

82-
// Reject updates on already inactive sessions
83-
if session.GetStatus().Equal(v1base.StatusInactive) {
84-
return nil, types.NewErrorInvalidSessionStatus(session.GetID(), session.GetStatus())
85-
}
86-
8782
// Validate updated usage metrics are not regressing
8883
if msg.DownloadBytes.LT(session.GetDownloadBytes()) {
8984
return nil, types.NewErrorInvalidDownloadBytes(msg.DownloadBytes)

0 commit comments

Comments
 (0)