Skip to content

Commit 542e23f

Browse files
echistyakovmeta-codesync[bot]
authored andcommitted
Create a dedicated interaction.go file
Summary: To keep interaciton related helpers. Reviewed By: siutsin Differential Revision: D86181093 fbshipit-source-id: d2b7eef2cdc4c51a75067ddea78c24265cba2f14
1 parent 645187c commit 542e23f

File tree

2 files changed

+24
-7
lines changed

2 files changed

+24
-7
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package types
18+
19+
type interactionContextKey int
20+
21+
const (
22+
interactionCreateKey interactionContextKey = 1
23+
interactionIDKey interactionContextKey = 2
24+
)

third-party/thrift/src/thrift/lib/go/thrift/types/request_channel.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,6 @@ type interactionChannel struct {
7979
// Compile time interface enforcer
8080
var _ RequestChannel = (*interactionChannel)(nil)
8181

82-
type interactionContextKey int
83-
84-
const (
85-
interactionCreateKey interactionContextKey = 1
86-
interactionIDKey interactionContextKey = 2
87-
)
88-
8982
// NewInteractionChannel creates a new interaction channel.
9083
func NewInteractionChannel(channel RequestChannel, interactionName string) RequestChannel {
9184
interactionID := nextInteractionID.Add(1)

0 commit comments

Comments
 (0)