(opts cliproxyexecutor.Options, count int)
| 2780 | } |
| 2781 | |
| 2782 | func withHomeAuthCount(opts cliproxyexecutor.Options, count int) cliproxyexecutor.Options { |
| 2783 | if count <= 0 { |
| 2784 | count = 1 |
| 2785 | } |
| 2786 | meta := make(map[string]any, len(opts.Metadata)+1) |
| 2787 | for k, v := range opts.Metadata { |
| 2788 | meta[k] = v |
| 2789 | } |
| 2790 | meta[homeAuthCountMetadataKey] = count |
| 2791 | opts.Metadata = meta |
| 2792 | return opts |
| 2793 | } |
| 2794 | |
| 2795 | func homeAuthCountFromMetadata(meta map[string]any) int { |
| 2796 | if len(meta) == 0 { |
no outgoing calls