Add CreateChannel enum for upstream message handler
This commit is contained in:
1 parent
8cd0e8595f
commit
dbe3473874
3 files changed
+25
-18
No files matched your search
@@ -227,6 +227,8 @@ func toMsgType(ctx context.Context, m proto.Message) (pbs.MsgType, error) {
|
||||
return pbs.MsgType_MSG_TYPE_VERIFY_SIGNATURE, nil
|
||||
case *pbs.CloseConnectionRecordingRequest, *pbs.CloseConnectionRecordingResponse:
|
||||
return pbs.MsgType_MSG_TYPE_CLOSE_CONNECTION, nil
|
||||
case *pbs.CreateChannelRecordingRequest, *pbs.CreateChannelRecordingResponse:
|
||||
return pbs.MsgType_MSG_TYPE_CREATE_CHANNEL, nil
|
||||
default:
|
||||
return pbs.MsgType_MSG_TYPE_UNSPECIFIED, errors.New(ctx, errors.InvalidParameter, op, fmt.Sprintf("%q is an unknown msg type", t))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user