You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: broadcast_consumer_tunnel.go
    path of file: ./repos/plumber/bus
    
    the code of the file until where you have to start completion: package bus

import (
	"context"
	"fmt"

	"github.com/golang/protobuf/proto"
	"github.com/pkg/errors"

	"github.com/batchcorp/plumber-schemas/build/go/protos/opts"

	"github.com/streamdal/plumber/validate"
)

func (b *Bus) doCreateTunnel(ctx context.Context, msg *Message) error {
	tunnelOptions := &opts.TunnelOptions{}
	if err := proto.Unmarshal(msg.Data, tunnelOptions); err != nil {
		return 
    
func (b *Bus) doCreateTunnel(ctx context.Context, msg *Message) error {
	tunnelOptions := &opts.TunnelOptions{}
	if err := proto.Unmarshal(msg.Data, tunnelOptions); err != nil {
		return errors.Wrap(err, "unable to unmarshal message into opts.TunnelOptions")
	}

	if err := validate.TunnelOptionsForServer(tunnelOptions); err != nil {
		return errors.Wrap(err, "tunnel option validation failed")
	}

	if _, err := b.config.Actions.CreateTunnel(ctx, tunnelOptions); err != nil {
		return errors.Wrap(err, "unable to create tunnel")
	}

	b.log.Infof("Created tunnel '%s' (from broadcast msg)", tunnelOptions.XTunnelId)

	return nil
}