diff --git a/internal/gen/controller.swagger.json b/internal/gen/controller.swagger.json index 8f3aa4248..3c80e7784 100644 --- a/internal/gen/controller.swagger.json +++ b/internal/gen/controller.swagger.json @@ -4742,7 +4742,7 @@ }, "closed_reason": { "type": "string", - "title": "closed_reason of the conneciont" + "title": "closed_reason of the connection" } }, "title": "Connection contains information about a specific connection in a session" diff --git a/internal/proto/controller/api/resources/sessions/v1/session.proto b/internal/proto/controller/api/resources/sessions/v1/session.proto index 4ec332d27..d05233766 100644 --- a/internal/proto/controller/api/resources/sessions/v1/session.proto +++ b/internal/proto/controller/api/resources/sessions/v1/session.proto @@ -43,7 +43,7 @@ message Connection { // bytes_down of the connection uint64 bytes_down = 8; // @gotags: `class:"public"` - // closed_reason of the conneciont + // closed_reason of the connection string closed_reason = 9; // @gotags: `class:"public"` } diff --git a/internal/session/connection.go b/internal/session/connection.go index 42712b1dc..07f810911 100644 --- a/internal/session/connection.go +++ b/internal/session/connection.go @@ -33,7 +33,7 @@ type Connection struct { BytesUp uint64 `json:"bytes_up,omitempty" gorm:"default:null"` // BytesDown of the connection BytesDown uint64 `json:"bytes_down,omitempty" gorm:"default:null"` - // ClosedReason of the conneciont + // ClosedReason of the connection ClosedReason string `json:"closed_reason,omitempty" gorm:"default:null"` // CreateTime from the RDBMS CreateTime *timestamp.Timestamp `json:"create_time,omitempty" gorm:"default:current_timestamp"` diff --git a/sdk/pbs/controller/api/resources/sessions/session.pb.go b/sdk/pbs/controller/api/resources/sessions/session.pb.go index b4cf7e335..9b50dd7fd 100644 --- a/sdk/pbs/controller/api/resources/sessions/session.pb.go +++ b/sdk/pbs/controller/api/resources/sessions/session.pb.go @@ -154,7 +154,7 @@ type Connection struct { BytesUp uint64 `protobuf:"varint,7,opt,name=bytes_up,json=bytesUp,proto3" json:"bytes_up,omitempty" class:"public"` // @gotags: `class:"public"` // bytes_down of the connection BytesDown uint64 `protobuf:"varint,8,opt,name=bytes_down,json=bytesDown,proto3" json:"bytes_down,omitempty" class:"public"` // @gotags: `class:"public"` - // closed_reason of the conneciont + // closed_reason of the connection ClosedReason string `protobuf:"bytes,9,opt,name=closed_reason,json=closedReason,proto3" json:"closed_reason,omitempty" class:"public"` // @gotags: `class:"public"` }