File tree Expand file tree Collapse file tree 2 files changed +24
-7
lines changed
third-party/thrift/src/thrift/lib/go/thrift/types Expand file tree Collapse file tree 2 files changed +24
-7
lines changed Original file line number Diff line number Diff line change 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+ )
Original file line number Diff line number Diff line change @@ -79,13 +79,6 @@ type interactionChannel struct {
7979// Compile time interface enforcer
8080var _ 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.
9083func NewInteractionChannel (channel RequestChannel , interactionName string ) RequestChannel {
9184 interactionID := nextInteractionID .Add (1 )
You can’t perform that action at this time.
0 commit comments